заполняемый laravel
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
'title',
'slug',
'body',
'image',
'published',
'comments_open'
];
красноречиво, където в
$users = DB::table('users')->whereIn('id', array(1, 2, 3))->get()
където () ларавель нещатните
//los signos de igualdad pueden ser: ">=", "<=", "=", ">", "<"
$user = User::where("estado","=",1)->find(10);
ларавель, където
$users = DB::table('users')
->whereDate('created_at', '2016-12-31')
->get();
php един майстор прави модел
php artisan make:model Flight
ларавель когато и където
Table::where('Column', Value)->where('NewColumn', Value)->get();