diff options
Diffstat (limited to 'app/Http/Controllers/SpecialCallsController.php')
-rw-r--r-- | app/Http/Controllers/SpecialCallsController.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Http/Controllers/SpecialCallsController.php b/app/Http/Controllers/SpecialCallsController.php index b99b7ac..025d955 100644 --- a/app/Http/Controllers/SpecialCallsController.php +++ b/app/Http/Controllers/SpecialCallsController.php @@ -39,6 +39,13 @@ class SpecialCallsController extends Controller return Redirect::back()->with('status', "Special callsign added."); } + public function show($sign) + { + $call = SpecialCall::where('sign', $sign)->first(); + return $call->description ?? '<p><i>This special callsign doesn\'t have a description.</i></p>'; + } + + public function edit(Request $request, int $id) { $data = SpecialCall::findOrFail($id); |