12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
-
- namespace {{ namespace }};
-
- use {{ namespacedModel }};
- use {{ rootNamespace }}Http\Controllers\Controller;
- use Illuminate\Http\Request;
- use {{ namespacedParentModel }};
-
- class {{ class }} extends Controller
- {
- /**
- * Display a listing of the resource.
- *
- * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
- * @return \Illuminate\Http\Response
- */
- public function index({{ parentModel }} ${{ parentModelVariable }})
- {
- //
- }
-
- /**
- * Show the form for creating a new resource.
- *
- * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
- * @return \Illuminate\Http\Response
- */
- public function create({{ parentModel }} ${{ parentModelVariable }})
- {
- //
- }
-
- /**
- * Store a newly created resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
- * @return \Illuminate\Http\Response
- */
- public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }})
- {
- //
- }
-
- /**
- * Display the specified resource.
- *
- * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
- * @param \{{ namespacedModel }} ${{ modelVariable }}
- * @return \Illuminate\Http\Response
- */
- public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
- {
- //
- }
-
- /**
- * Show the form for editing the specified resource.
- *
- * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
- * @param \{{ namespacedModel }} ${{ modelVariable }}
- * @return \Illuminate\Http\Response
- */
- public function edit({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
- {
- //
- }
-
- /**
- * Update the specified resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
- * @param \{{ namespacedModel }} ${{ modelVariable }}
- * @return \Illuminate\Http\Response
- */
- public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
- {
- //
- }
-
- /**
- * Remove the specified resource from storage.
- *
- * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
- * @param \{{ namespacedModel }} ${{ modelVariable }}
- * @return \Illuminate\Http\Response
- */
- public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
- {
- //
- }
- }
|