aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/SpecialCallsController.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-02 15:25:36 +0100
committerMateja <mail@matejamaric.com>2020-11-02 15:25:36 +0100
commitb5afd40a49a2c2b061865a501103ea2a060f4997 (patch)
tree64b8ced33431c908442881ff3e63b898023f3c3e /app/Http/Controllers/SpecialCallsController.php
parentcd8cfe9d6a0b786e03142ae492b2d0d52f92e4f8 (diff)
downloadyota-laravel-b5afd40a49a2c2b061865a501103ea2a060f4997.tar.gz
yota-laravel-b5afd40a49a2c2b061865a501103ea2a060f4997.zip
Standardized controllers to CRUD...
Diffstat (limited to 'app/Http/Controllers/SpecialCallsController.php')
-rw-r--r--app/Http/Controllers/SpecialCallsController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Http/Controllers/SpecialCallsController.php b/app/Http/Controllers/SpecialCallsController.php
index 2ddf743..ed29346 100644
--- a/app/Http/Controllers/SpecialCallsController.php
+++ b/app/Http/Controllers/SpecialCallsController.php
@@ -13,13 +13,13 @@ use App\Models\SpecialCall;
class SpecialCallsController extends Controller
{
- public function add(Request $request)
+ public function create(Request $request)
{
$data = SpecialCall::all();
return view('pages.callsigns', compact('data'));
}
- public function addForm(Request $request)
+ public function store(Request $request)
{
$rules = [ 'sign' => 'required' ];
$messages = [ 'sign.required' => 'You need to provide a callsign!' ];
@@ -45,7 +45,7 @@ class SpecialCallsController extends Controller
return view('pages.editsign', compact('data'));
}
- public function editForm(Request $request, int $id)
+ public function update(Request $request, int $id)
{
if ($request->input('submit') == 'Edit callsign') {
$rules = [ 'sign' => 'required' ];