\App\Http\Controllers\ApiVesselController

Sample RESTful controller for Vessels

This is just to demostrate the concept of resource controllers in REST. Anyone with a valid api_token can do CRUD operations in vessels table.

Summary

Methods
Properties
Constants
index()
create()
store()
show()
edit()
update()
destroy()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

index()

index() : \Illuminate\Http\Response

Display a listing of the resource.

Returns

\Illuminate\Http\Response

create()

create() : \Illuminate\Http\Response

Show the form for creating a new resource.

Returns

\Illuminate\Http\Response

store()

store(\Illuminate\Http\Request  $request) : \Illuminate\Http\Response

Store a newly created resource in storage.

Parameters

\Illuminate\Http\Request $request

Returns

\Illuminate\Http\Response

show()

show(integer  $id) : \Illuminate\Http\Response

Display the specified resource.

Parameters

integer $id

Returns

\Illuminate\Http\Response

edit()

edit(integer  $id) : \Illuminate\Http\Response

Show the form for editing the specified resource.

Parameters

integer $id

Returns

\Illuminate\Http\Response

update()

update(\Illuminate\Http\Request  $request, integer  $id) : \Illuminate\Http\Response

Update the specified resource in storage.

Parameters

\Illuminate\Http\Request $request
integer $id

Returns

\Illuminate\Http\Response

destroy()

destroy(integer  $id) : \Illuminate\Http\Response

Remove the specified resource from storage.

Parameters

integer $id

Returns

\Illuminate\Http\Response