14 lines
318 B
PHP
14 lines
318 B
PHP
<?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()]);
|
|
}
|
|
}
|