mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-24 09:14:57 +08:00
Merge branch 'master' of github.com:mpociot/laravel-apidoc-generator
This commit is contained in:
@@ -15,7 +15,7 @@ class TestResourceController extends Controller
|
||||
public function index()
|
||||
{
|
||||
return [
|
||||
'index_resource' => true
|
||||
'index_resource' => true,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ class TestResourceController extends Controller
|
||||
public function create()
|
||||
{
|
||||
return [
|
||||
'create_resource' => true
|
||||
'create_resource' => true,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -35,12 +35,13 @@ class TestResourceController extends Controller
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
return [
|
||||
'store_resource' => true
|
||||
'store_resource' => true,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -48,12 +49,13 @@ class TestResourceController extends Controller
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return [
|
||||
'show_resource' => $id
|
||||
'show_resource' => $id,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -61,12 +63,13 @@ class TestResourceController extends Controller
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
return [
|
||||
'edit_resource' => $id
|
||||
'edit_resource' => $id,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -75,12 +78,13 @@ class TestResourceController extends Controller
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, $id)
|
||||
{
|
||||
return [
|
||||
'update_resource' => $id
|
||||
'update_resource' => $id,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -88,12 +92,13 @@ class TestResourceController extends Controller
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
return [
|
||||
'destroy_resource' => $id
|
||||
'destroy_resource' => $id,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user