some progress
This commit is contained in:
@@ -2,9 +2,15 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Person;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class CelebrityController extends Controller
|
||||
{
|
||||
//
|
||||
public function show(string $slug)
|
||||
{
|
||||
$celebrity = Person::where('slug', $slug)->first();
|
||||
|
||||
return view('celebrity.show', compact('celebrity'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user