Skip to content

Instantly share code, notes, and snippets.

Cristian Tabacitu tabacitu

Block or report user

Report or block tabacitu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tabacitu / .zshrc
Last active Jul 25, 2019
Quickly create a Backpack Demo, serve it with Laravel Valet, open it with Sublime Text and Brave Browser on Mac OS X
View .zshrc
# 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" /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/';
tabacitu / SolutionA.php
Created Oct 25, 2018
Proposal MonsterCrudConfiguration files
View SolutionA.php
namespace App\AdminPanel\Configurations;
use Illuminate\Http\Request;
class MonsterCrudConfiguration {
public static $model = 'App\Models\Monster';
public static $entityNameSingular = 'monster';
tabacitu / backpack.stack.css
Created Sep 20, 2018
Backpack overlay that makes AdminLTE match the Stack Multi-Purpose HTML Template
View backpack.stack.css
/* ------------------------------------------ */
/* ------- 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>.ion {
margin-right: 5px;
View CreatedByTrait.php
<?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 = [])
tabacitu / PermissionMiddleware.php
Created Jan 29, 2017
Laravel Role and Permission Middlewares
View PermissionMiddleware.php
namespace App\Http\Middleware;
use Closure;
use Auth;
class PermissionMiddleware
tabacitu / gist:dbcfd71375e72c857474
Last active Aug 22, 2018
Tabacitu Laravel Package Service Provider boilerplate code
View gist:dbcfd71375e72c857474
namespace League\Skeleton;
use Illuminate\Support\ServiceProvider;
use Illuminate\Routing\Router;
class SkeletonServiceProvider extends ServiceProvider
You can’t perform that action at this time.