View gist:d6de642ffa5a725abdf2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Editable fields with a WYSIWYG | |
$(function() { | |
$('.selector').editable({ | |
// Set custom buttons with separator between them. | |
buttons: ["undo", "redo", "sep", "bold", "italic", "underline", "sep", "insertOrderedList", "insertUnorderedList", "sep", "createLink"], | |
inverseSkin: true, | |
inlineMode: false, | |
preloaderSrc: window.location.origin + 'assets/image/preloader.gif', | |
// This is what matters |
View RouteServiceProvider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Routing\Router; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
class RouteServiceProvider extends ServiceProvider | |
{ | |
/** |
View TestCase.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TestCase extends Illuminate\Foundation\Testing\TestCase | |
{ | |
/** | |
* The base URL to use while testing the application. | |
* | |
* @var string | |
*/ | |
protected $baseUrl = 'http://samples.dev'; |
View SavesUsingTransaction.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Devio\Propertier; | |
use Throwable; | |
trait SavesUsingTransaction | |
{ | |
protected $savingTransaction = true; |
View RouteServiceProvider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Routing\Router; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
class RouteServiceProvider extends ServiceProvider | |
{ | |
/** |
View example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="Treeview"> | |
<ul> | |
<li> | |
<a class="Treeview__Item" href="#">Equipos</a> | |
<ul> | |
<li><a href="#" class="Treeview__Item">Fuentes</a></li> | |
<li><a href="#" class="Treeview__Item">Dispensadores</a></li> | |
<li><a href="#" class="Treeview__Item">Osmosis</a></li> | |
<li><a href="#" class="Treeview__Item">Descalcificadores</a></li> |
View openormodel.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
FormBuilder::macro('openOrModel', function ($post, $put, $model = null) { | |
return ! $model | |
? \Form::open(['route' => $post, 'method' => 'post']) | |
: \Form::model($model, ['route' => $put, 'method' => 'put']); | |
}); | |
// Use it like this: | |
// |
View Hexagons.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="hexagons"> | |
<div class="hexagons__row"> | |
<div class="hexagon"> | |
<div class="hexagon__image" style="background-image: url('image.jpg');"></div> | |
<div class="hexagon__description"> | |
<h5>Description title</h5> | |
<p>Description content</p> | |
</div> | |
</div> | |
<div class="hexagon"> |
View steps.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="progress"> | |
@foreach ($steps as $step) | |
<div class="{{ $step[0] }} | |
{{ $loop->iteration > $currentStep ? '' : 'progress__step--active' }} | |
{{ $loop->iteration >= $currentStep ? '' : 'progress__step--done' }}"> | |
{{ $step[1] }} | |
</div> | |
@endforeach | |
</div> |
OlderNewer