MyHomeCollection/app/Http/Controllers/PublicController.php

15 lines
259 B
PHP
Raw Normal View History

2020-07-24 13:11:21 +02:00
<?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]);
}
}