This file is generated from the source snippets/*.cson
files.
File: application.cson
Shortcut: singleton
+ tab
$this->app->singleton($1, function ($app) {
$2
});
File: application.cson
Shortcut: bind
+ tab
$this->app->bind($1, function ($app) {
$2
});
File: application.cson
Shortcut: alias
+ tab
$this->app->alias('${1:abstract}', '${2:alias}');
File: controller.cson
Shortcut: validate
+ tab
$this->validate(request(), [
$1
]);
File: controller.cson
Shortcut: rjson
+ tab
response()->json($1);
File: controller.cson
Shortcut: vieww
+ tab
view('$1')${2:->with([$3])};
File: controller.cson
Shortcut: view
+ tab
view('$1', [$2]);
File: database.cson
Shortcut: factory
+ tab
$factory->define(App\$1::class, function (Faker\Generator $faker) {
return [
$2
];
});
File: database.cson
Shortcut: factory:state
+ tab
$factory->state(App\$1::class, '${2:state}', function (Faker\Generator $faker) {
return [
$3
];
});
File: eloquent.cson
Shortcut: hasone
+ tab
public function $1()
{
return $this->hasOne($2::class);
}
File: eloquent.cson
Shortcut: hasmany
+ tab
public function $1()
{
return $this->hasMany($2::class);
}
File: eloquent.cson
Shortcut: belongsto
+ tab
public function $1()
{
return $this->belongsTo($2::class);
}
File: eloquent.cson
Shortcut: btm
+ tab
public function $1()
{
return $this->belongsToMany($2::class);
}
File: eloquent.cson
Shortcut: hasmanythrough
+ tab
public function $1()
{
return $this->hasManyThrough($2::class, $3::class);
}
File: eloquent.cson
Shortcut: morphto
+ tab
public function $1()
{
return $this->morphTo();
}
File: eloquent.cson
Shortcut: morph
+ tab
public function $1()
{
return $this->morphMany($2::class, '${3:commentable}');
}
File: eloquent.cson
Shortcut: morphmany
+ tab
public function $1()
{
return $this->morphMany($2::class, '${3:commentable}');
}
File: fun.cson
Shortcut: laravel:logo
+ tab
:/:::::::+.
.+- `+:
.+- `//`
-+: :/` `---::-:-
-+: -+. -/. .:.
-+: .+: `/:` `:/`
-+: `//` ``./+::::::.
-o: `:+.`..-::::::-..:/`
-o:``..-::/+++:-.``` ./-
-+//::-.```-+: `:/`
.+/` `..:/+/:
`++``.-:/+//:-`
`/++/:-.
File: php.cson
Shortcut: kv
+ tab
'$1' => ${2:'$3'},$0
File: php.cson
Shortcut: this
+ tab
$this
File: php.cson
Shortcut: /
+ tab
/**
* $1
*/
File: php.cson
Shortcut: /**
+ tab
/**
* $1
*/
File: php.cson
Shortcut: func
+ tab
function ($1) {
$2
}
File: php.cson
Shortcut: pubf
+ tab
public function $1($2)
{
$0
}
File: php.cson
Shortcut: prof
+ tab
protected function $1($2)
{
$0
}
File: php.cson
Shortcut: prif
+ tab
private function $1($2)
{
$0
}
File: php.cson
Shortcut: ipubf
+ tab
public function $1($2);
File: routes.cson
Shortcut: route
+ tab
Route::$1('$2', '$3Controller@$4');
File: routes.cson
Shortcut: route:group
+ tab
Route::group([
$1
], function () {
$2
});
File: tests.cson
Shortcut: testcase
+ tab
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class $1Test extends TestCase
{
$2
}
File: tests.cson
Shortcut: test
+ tab
/** @test */
function $1()
{
$2
}
File: util.cson
Shortcut: shebang
+ tab
#!/usr/bin/env ${1:bash}$0
File: util.cson
Shortcut: #!
+ tab
#!/usr/bin/env ${1:bash}$0
To regenerate this document run: node docs.js
.