From c5209f1a698113f48d7435c5363b11e925d16e23 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 14 Mar 2021 14:19:33 +0100 Subject: Add `/special-calls/show` route. --- app/Http/Controllers/SpecialCallsController.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app') diff --git a/app/Http/Controllers/SpecialCallsController.php b/app/Http/Controllers/SpecialCallsController.php index 025d955..a26af78 100644 --- a/app/Http/Controllers/SpecialCallsController.php +++ b/app/Http/Controllers/SpecialCallsController.php @@ -13,6 +13,13 @@ use App\Models\SpecialCall; class SpecialCallsController extends Controller { + public function index(Request $request) + { + //$data = SpecialCall::select('sign')->get()->toArray(); + $data = SpecialCall::all()->toArray(); + return $data; + } + public function create(Request $request) { $data = SpecialCall::all(); -- cgit v1.2.3