Source view

This commit is contained in:
2020-08-15 02:24:46 +05:00
parent 084f275b89
commit 35e96947d9
3 changed files with 84 additions and 0 deletions

View File

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