Topic View

This commit is contained in:
2020-08-14 02:00:41 +05:00
parent 73f81426c6
commit eb449eab51
8 changed files with 115 additions and 31 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Topic;
class TopicsController extends Controller
{
/**
* Load a single Topic view
*
* @param mixed $topic
* @return void
*/
public function show(Topic $topic)
{
return view('topics.show', [
'topic' => $topic->load('articles')
]);
}
}