MinimumRevenueController
extends Controller
in package
Class MinimumRevenueController
Handles operations related to minimum revenue resources.
Table of Contents
Properties
Methods
- __construct() : mixed
- check() : JsonResponse
- Check the minimum revenue for a specific period.
- create() : View
- Show the form for creating a new resource.
- destroy() : mixed
- Remove the specified resource from storage.
- edit() : View
- Show the form for editing the specified resource.
- export() : BinaryFileResponse
- Export the minimum revenue data to an Excel file.
- index() : Response
- Display a listing of the resource.
- show() : void
- Show the specified resource.
- store() : void
- Store a newly created resource in storage.
- update() : mixed
- Update the specified resource in storage.
Properties
$minimumRevenueService
private
MinimumRevenueService
$minimumRevenueService
Methods
__construct()
public
__construct(MinimumRevenueService $minimumRevenueService) : mixed
Parameters
- $minimumRevenueService : MinimumRevenueService
check()
Check the minimum revenue for a specific period.
public
check(Request $request) : JsonResponse
Parameters
- $request : Request
Return values
JsonResponsecreate()
Show the form for creating a new resource.
public
create() : View
Return values
Viewdestroy()
Remove the specified resource from storage.
public
destroy(mixed $id) : mixed
Parameters
- $id : mixed
edit()
Show the form for editing the specified resource.
public
edit(int $id) : View
Parameters
- $id : int
Return values
Viewexport()
Export the minimum revenue data to an Excel file.
public
export(Request $request) : BinaryFileResponse
Parameters
- $request : Request
Return values
BinaryFileResponseindex()
Display a listing of the resource.
public
index(Request $request) : Response
Parameters
- $request : Request
Return values
Responseshow()
Show the specified resource.
public
show(int $id) : void
Parameters
- $id : int
store()
Store a newly created resource in storage.
public
store(Request $request) : void
Parameters
- $request : Request
update()
Update the specified resource in storage.
public
update(Request $request, mixed $id) : mixed
Parameters
- $request : Request
- $id : mixed