progress
This commit is contained in:
@@ -7,6 +7,13 @@ use Illuminate\Http\Request;
|
||||
|
||||
class CelebrityController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$celebrities = Person::paginate(25);
|
||||
|
||||
return view('celebrity.index', compact('celebrities'));
|
||||
}
|
||||
|
||||
public function show(string $slug)
|
||||
{
|
||||
$celebrity = Person::where('slug', $slug)->first();
|
||||
|
||||
Reference in New Issue
Block a user