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
# alias to the subl command | |
# for it to work, you need to create a symlink to the subl command somewhere in the PATH | |
# ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl | |
alias sublime='subl' | |
# function to open the current directory in the browser, served by Laravel Valet | |
safari() { | |
open 'http://'$(basename $(pwd))'.test/'; | |
} |
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\AdminPanel\Configurations; | |
use Illuminate\Http\Request; | |
class MonsterCrudConfiguration { | |
public static $model = 'App\Models\Monster'; | |
public static $entityNameSingular = 'monster'; |
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
/* ------------------------------------------ */ | |
/* ------- Backpack Stack Overlay ------------ */ | |
/* ------------------------------------------ */ | |
/* This file brings some subjective improvements to the AdminLTE style, to match the style provided by the Stack HTML Template. */ | |
.sidebar-menu>li>a>.fa, | |
.sidebar-menu>li>a>.glyphicon, | |
.sidebar-menu>li>a>.ion { | |
margin-right: 5px; | |
} |
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\Models\Traits; | |
use Illuminate\Database\Eloquent\Model; | |
trait CreatedByTrait { | |
/** | |
* Stores the user id at each create & update. | |
*/ | |
public function save(array $options = []) |
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\Http\Middleware; | |
use Closure; | |
use Auth; | |
class PermissionMiddleware | |
{ | |
/** |
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 League\Skeleton; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Routing\Router; | |
class SkeletonServiceProvider extends ServiceProvider | |
{ | |
/** |
NewerOlder