15 lines
259 B
PHP
15 lines
259 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Home;
|
||
|
|
||
|
class PublicController extends Controller
|
||
|
{
|
||
|
public function show($slug)
|
||
|
{
|
||
|
$home = Home::where('slug', $slug)->firstOrFail();
|
||
|
return view('public.view', ['home' => $home]);
|
||
|
}
|
||
|
}
|