Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Show the form for creating a new resource.
- *
- * @return IlluminateHttpResponse
- */
- public function create()
- {
- //
- return view('contacts.create');
- }
- /**
- * Store a newly created resource in storage.
- *
- * @param IlluminateHttpRequest $request
- * @return IlluminateHttpResponse
- */
- public function store(contactsrequest $request)
- {
- //contacts model
- contacts::create($request->all());
- return redirect()->route('contacts.index')->with('message', 'Contacts has been added successfully');
- }
- /**
- * Display the specified resource.
- *
- * @param int $id
- * @return IlluminateHttpResponse
- */
- public function show($id)
- {
- //
- }
- /**
- * Show the form for editing the specified resource.
- *
- * @param int $id
- * @return IlluminateHttpResponse
- */
- public function edit(contacts $contacts)
- {
- //
- return view('contacts.edit', compact('contacts'));
- }
- /**
- * Update the specified resource in storage.
- *
- * @param IlluminateHttpRequest $request
- * @param int $id
- * @return IlluminateHttpResponse
- */
- public function update(contactsrequest $request, contacts $contacts)
- {
- //
- $contacts->update($request->all());
- return redirect()->route('contacts.index')->with('message', 'Contacts has been updated successfully');
- }
- /**
- * Remove the specified resource from storage.
- *
- * @param int $id
- * @return IlluminateHttpResponse
- */
- public function destroy($id)
- {
- //
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement