laravel compilabile
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
'title',
'slug',
'body',
'image',
'published',
'comments_open'
];
eloquente dove
$users = DB::table('users')->whereIn('id', array(1, 2, 3))->get()
dove () laravel Eloquente
//los signos de igualdad pueden ser: ">=", "<=", "=", ">", "<"
$user = User::where("estado","=",1)->find(10);
laravel dove
$users = DB::table('users')
->whereDate('created_at', '2016-12-31')
->get();
php artisan marca modello
php artisan make:model Flight
laravel dove e dove
Table::where('Column', Value)->where('NewColumn', Value)->get();