Initial Commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\DjProfile;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return view('home.index', ['featured' => DjProfile::where('is_published', true)->where('is_featured', true)->orderByDesc('average_rating')->limit(5)->get()]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user