20 lines
462 B
PHP
20 lines
462 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Front;
|
|
|
|
use App\Models\News;
|
|
use Uwil\LaravelCommon\Controllers\Controller;
|
|
|
|
class NewsController extends Controller
|
|
{
|
|
/**
|
|
* Show news show page.
|
|
*
|
|
* @param \App\Models\News $news
|
|
* @return \Illuminate\Contracts\View\View
|
|
*/
|
|
public function show(News $news): \Illuminate\Contracts\View\View
|
|
{
|
|
return view('front.pages.news.show', ['model' => $news->load('categories')]);
|
|
}
|
|
}
|