route.get |
Route::get('', function (){ }); |
route.get.n |
Route::get('', function (){ })->name(''); |
route.post |
Route::post('', function (){ }); |
route.post.n |
Route::post('', function (){ })->name(''); |
route.put |
Route::put('', function (){ }); |
route.put.n |
Route::put('', function (){ })->name(''); |
route.delete |
Route::delete('', function (){ }); |
route.delete.n |
Route::delete('', function (){ })->name(''); |
route.options |
Route::options('', function (){ }); |
route.options.n |
Route::options('', function (){ })->name(''); |
route.patch |
Route::patch('', function (){ }); |
route.patch.n |
Route::patch('', function (){ })->name(''); |
route.match |
Route::match([], function (){ }); |
route.any |
Route::any('', function (){ }); |
route.redirect |
Route::redirect('', ''); |
route.view |
Route::view('', ''); |
route.group.middleware |
Route::middleware([])->group(function () {} ); |
route.group.name |
Route::name()->group(function () {} ); |
route.group.domain |
Route::domain()->group(function () {} ); |
route.group.prefix |
Route::prefix()->group(function () {} ); |
route.resource |
Route::resource('',); |
route.resapi |
Route::apiResource('',); |
use.route |
use Illuminate\Support\Facades\Route; |
use.request |
use Illuminate\Http\Request; |
use.model |
use App\Models| |
use.ctrl |
use App\Http\Controllers| |
use.val |
use Illuminate\Support\Facades\Validator; |
use.collection |
use Illuminate\Support\Collection; |
use.str |
use Illuminate\Support\Str; |
use.arr |
use Illuminate\Support\Arr; |
use.http |
use Illuminate\Support\Facades\Http; |
use.auth |
use Illuminate\Support\Facades\Auth; |
use.hash |
use Illuminate\Support\Facades\Hash; |
use.softdelete |
use Illuminate\Database\Eloquent\SoftDeletes; |
session.get |
$request->session()->get('') |
session.all |
$request->session()->all() |
session.put |
$request->session()->put() |
session.push |
$request->session()->push() |
session.has |
$request->session()->has() |
session.forget |
$request->session()->forget() |
session.flush |
$request->session()->flush() |
r.input |
$request->input() |
r.path |
$request->path() |
r.is |
$request->is() |
r.url |
$request->url() |
r.method |
$request->method() |
r.path |
$request->path() |
r.header |
$request->header() |
r.ip |
$request->ip() |
r.bearerToken |
$request->bearerToken() |
r.all |
$request->all() |
r.only |
$request->only() |
r.except |
$request->except() |
r.has |
$request->has() |
r.filled |
$request->filled() |
r.file |
$request->file() |
r.hasFile |
$request->hasFile() |
view |
return view(); |
view.with |
return view()->with(); |
model.table |
protected $table = ''; |
model.pk |
protected $primaryKey = ''; |
model.incrementing |
public $incrementing = false; |
model.keytype |
protected $keyType = ''; |
model.timestamps |
public $timestamps = false; |
model.dateformat |
protected $dateFormat = ''; |
model.conn |
protected $connection = ''; |
model.attr |
protected $attributes = []; |
model.fill |
protected $fillable = []; |
model.softdeletes |
use SoftDeletes |
model.oneToOne or 1:1 |
public function functionName(){ return $this->hasOne(, 'foreign_key', 'local_key');} |
model.belongsTo |
public function functionName(){ return $this->belongsTo(, 'foreign_key', 'local_key');} |
model.oneToMany or 1:n |
public function functionName(){ return $this->hasMany(, 'foreign_key', 'local_key');} |
model.scope |
public function scopeFunctionName($query){ return $query->where(''','') } |
model.accessor or accessor |
public function getFieldNameAttribute(value){ } |
model.mutator or mutator |
public function setFieldNameAttribute(value){ } |
model.casts or casts |
protected $casts=[]; |
validate |
$validator = Validator::make($request->all(), []); |
validate.fails |
$validator->fails() |
auth.check |
Auth::check() |
auth.attempt |
Auth::attempt(credentials) |
auth.user |
Auth::user() |
auth.id |
Auth::id(); |
auth.login |
Auth::login(); |
m.bigIncrements |
$table->bigIncrements('id'); |
m.bigInteger |
$table->bigInteger(''); |
m.boolean |
$table->boolean(''); |
m.binary |
$table->binary(''); |
m.char |
$table->char(''); |
m.dateTimeTz |
$table->dateTimeTz('',$precision=0); |
m.date |
$table->date(''); |
m.decimal |
$table->decimal('', $precision = 8, $scale = 2); |
m.double |
$table->double('', 8, 2); |
m.enum |
$table->double('', []); |
m.float |
$table->float('',8,2); |
m.fk |
$table->foreignId('');$table->foreign('')->references('')->on(''); |
m.geometryCollection |
$table->geometryCollection(''); |
m.geometry |
$table->geometry(''); |
m.id |
$table->id(''); |
m.increments |
$table->increments(''); |
m.integer |
$table->integer(''); |
m.ipAddress |
$table->ipAddress(''); |
m.json |
$table->json(''); |
m.jsonb |
$table->jsonb(''); |
m.lineString |
$table->lineString(''); |
m.longText |
$table->longText(''); |
m.macAddress |
$table->macAddress(''); |
m.mediumIncrements |
$table->mediumIncrements(''); |
m.mediumInteger |
$table->mediumInteger(''); |
m.mediumText |
$table->mediumText(''); |
m.morphs |
$table->morphs(''); |
m.multiLineString |
$table->multiLineString(''); |
m.multiPoint |
$table->multiPoint(''); |
m.multiPolygon |
$table->multiPolygon(''); |
m.nullableTimestamps |
$table->nullableTimestamps(''); |
m.nullableMorphs |
$table->nullableMorphs(''); |
m.smallIncrements |
$table->smallIncrements(''); |
m.smallInteger |
$table->smallInteger(''); |
m.softDeletesTz |
$table->softDeletesTz($column = 'deleted_at', $precision = 0); |
m.softDeletes |
$table->softDeletes($column = 'deleted_at', $precision = 0); |
m.string |
$table->string(''); |
m.text |
$table->text(''); |
m.timeTz |
$table->timeTz('sunrise', $precision = 0); |
m.time |
$table->time('sunrise', $precision = 0); |
m.timestampTz |
$table->timestampTz('added_at', $precision = 0); |
m.timestamp |
$table->timestamp('added_at', $precision = 0); |
m.timestampsTz |
$table->timestampsTz($precision = 0); |
m.timestamps |
$table->timestamps($precision = 0); |
m.tinyInteger |
$table->tinyInteger(''); |
m.unsignedBigInteger |
$table->unsignedBigInteger(''); |
m.unsignedDecimal |
$table->unsignedDecimal('', $precision = 8, $scale = 2); |
m.unsignedInteger |
$table->unsignedInteger(''); |
m.unsignedMediumInteger |
$table->unsignedMediumInteger(''); |
m.unsignedSmallInteger |
$table->unsignedSmallInteger(''); |
m.unsignedTinyInteger |
$table->unsignedTinyInteger(''); |
m.uuid |
$table->uuid(''); |
m.year |
$table->year(''); |
m.unique |
$table->unique(''); |
m.pk |
$table->primary(''); |
m.index |
$table->index(''); |
b.if |
@if ... @endif |
b.el |
@else |
b.elseif,b.elif |
@elseif |
b.un,b.unless |
@unless() ... @endunless |
b.isset |
@isset() .... @endisset |
b.empty |
@empty() .... @endempty |
b.auth, auth |
@auth()....@endauth |
b.guest, guest |
@guest()....@guest |
b.production |
@production() ... @endproduction |
b.env |
@env() ... @endenv |
b.for ,for |
@for() .... @endfor |
b.foreach,foreach |
@foreach() ... @endforeach |
b.while,while |
@while() .... @endwhile |
b.include |
@include() |