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