DemoEnquiriesController
extends BaseController
in package
Class : Contact (Contact Controller) Contact Class to control all Contact related operations.
Table of Contents
Methods
- __construct() : mixed
- This is default constructor of the class.
- create() : View
- Show the form for creating a new resource.
- destroy() : RedirectResponse
- Remove the specified resource from storage.
- edit() : View
- Show the form for editing the specified resource.
- index() : mixed
- This function to list all users items with pagination and search.
- show() : View
- Show the form for creating a new resource.
- store() : RedirectResponse
- Store a newly created resource in storage.
- update() : RedirectResponse
- Update the specified resource in storage.
Methods
__construct()
This is default constructor of the class.
public
__construct() : mixed
create()
Show the form for creating a new resource.
public
create(Request $request) : View
Parameters
- $request : Request
Return values
Viewdestroy()
Remove the specified resource from storage.
public
destroy(mixed $id) : RedirectResponse
Parameters
- $id : mixed
Return values
RedirectResponseedit()
Show the form for editing the specified resource.
public
edit(mixed $id, Request $request) : View
Parameters
- $id : mixed
- $request : Request
Return values
Viewindex()
This function to list all users items with pagination and search.
public
index(Request $request) : mixed
Parameters
- $request : Request
show()
Show the form for creating a new resource.
public
show(mixed $id, Request $request) : View
Parameters
- $id : mixed
- $request : Request
Return values
Viewstore()
Store a newly created resource in storage.
public
store(Request $request) : RedirectResponse
Parameters
- $request : Request
Return values
RedirectResponseupdate()
Update the specified resource in storage.
public
update(Request $request, mixed $id) : RedirectResponse
Parameters
- $request : Request
- $id : mixed