This commit is contained in:
1 parent
bed34d5350
commit
d086b29bcc
47 files changed
+87115
-7581
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Location;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class LocationController extends Controller {
|
||||
@@ -37,10 +38,16 @@ class LocationController extends Controller {
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return mixed
|
||||
*/
|
||||
public function show($id) {
|
||||
//
|
||||
$location = Location::find($id);
|
||||
|
||||
if (!$location) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
return view('location', [ 'location' => $location ]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user