MyHomeCollection/app/Http/Controllers/PublicController.php
2020-07-24 13:11:21 +02:00

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]);
}
}