Merge branch 'main' into features/filter/1
This commit is contained in:
14
app/Http/Controllers/PublicController.php
Normal file
14
app/Http/Controllers/PublicController.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?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]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user