Added s til controller
This commit is contained in:
parent
bb307df506
commit
f952ad33aa
|
@ -18,7 +18,7 @@ class ContactController extends Controller
|
|||
|
||||
$contact = Contact::query()->paginate($request->input("limit", 20));
|
||||
|
||||
return Response::detect("contact.index", [ "contact" => $contact]);
|
||||
return Response::detect("contacts.index", [ "contact" => $contact]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -28,7 +28,7 @@ class ContactController extends Controller
|
|||
*/
|
||||
public function create()
|
||||
{
|
||||
return Response::detect("contact.create");
|
||||
return Response::detect("contacts.create");
|
||||
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ class ContactController extends Controller
|
|||
"tel" => "required|max:255",
|
||||
]);
|
||||
|
||||
$contact = new MenuPlan($requestContact);
|
||||
$contact = new Contact($requestContact);
|
||||
$contact->save();
|
||||
|
||||
return Response::detect("contacts.store");
|
||||
|
|
Loading…
Reference in New Issue