It's a new laravel Snippet in sublime-completions
Trigger | Snippet |
---|---|
rget | Route::get('','')->name(); |
rpost | Route::post('',''); |
rv | return view()->with(); |
sg | Session::get(''); |
seh | Session::has(''); |
sput | Session::put('',$variable); |
authattempt | Create Complete Auth Attempt |
logout | Create a Complete Logout Function |
Mail::to('')->send(new MailClass()); | |
mcreate | Model::create([]); |
mselect | Model::all(); |
mupdate | Model::where()->update([]); |
mdelete | Model::findOrFail($id)->delete(); |
dbselect | DB::table('')->select()->get(); |
dbinsert | DB::table('')->insert([]); |
dbupdate | DB::table('')->where()->update([]); |
dbdelete | DB::table('')->findOrFail($id)->delete(); |
index | Create Index Function |
create | Make Create Function |
store | Create Store Function |
update | Create Update Function |
show | Create Show Function |
edit | Create Edit Function |
destroy | Create Destroy Function |
pt | protected $table = ''; |
pfill | protected $fillable = []; |
pall | protected $table = ''; protected $fillable = []; |
Enjoy!