consultas sql a la route
Created at: 2022-08-10 13:01:31 | Updated at: 2024-08-28 06:02:30
Route::get('/people', function () {
$persons = DB::select("SELECT * FROM `people` WHERE `categoria` IN ('photographers', 'painters', 'influencers', 'music'); ");
return view('people', compact('persons'));
});
Route::get('/dashboard', function()
{
$persons = DB::table('people')->where('categoria', 'models')
->orderBy('id', 'desc')
->paginate(20);
return View::make('dashboard')->with('persons', $persons);
})->name('dashboard');
No valid image directory found or the category is not valid for the gallery.