| 1666 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace {{ namespace }};
|
|
|
4 |
|
|
|
5 |
use {{ namespacedModel }};
|
|
|
6 |
use {{ rootNamespace }}Http\Controllers\Controller;
|
|
|
7 |
use Illuminate\Http\Request;
|
|
|
8 |
use {{ namespacedParentModel }};
|
|
|
9 |
|
|
|
10 |
class {{ class }} extends Controller
|
|
|
11 |
{
|
|
|
12 |
/**
|
|
|
13 |
* Display a listing of the resource.
|
|
|
14 |
*
|
|
|
15 |
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
|
|
|
16 |
* @return \Illuminate\Http\Response
|
|
|
17 |
*/
|
|
|
18 |
public function index({{ parentModel }} ${{ parentModelVariable }})
|
|
|
19 |
{
|
|
|
20 |
//
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
/**
|
|
|
24 |
* Show the form for creating a new resource.
|
|
|
25 |
*
|
|
|
26 |
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
|
|
|
27 |
* @return \Illuminate\Http\Response
|
|
|
28 |
*/
|
|
|
29 |
public function create({{ parentModel }} ${{ parentModelVariable }})
|
|
|
30 |
{
|
|
|
31 |
//
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
/**
|
|
|
35 |
* Store a newly created resource in storage.
|
|
|
36 |
*
|
|
|
37 |
* @param \Illuminate\Http\Request $request
|
|
|
38 |
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
|
|
|
39 |
* @return \Illuminate\Http\Response
|
|
|
40 |
*/
|
|
|
41 |
public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }})
|
|
|
42 |
{
|
|
|
43 |
//
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
/**
|
|
|
47 |
* Display the specified resource.
|
|
|
48 |
*
|
|
|
49 |
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
|
|
|
50 |
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
|
|
51 |
* @return \Illuminate\Http\Response
|
|
|
52 |
*/
|
|
|
53 |
public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
|
|
|
54 |
{
|
|
|
55 |
//
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
/**
|
|
|
59 |
* Show the form for editing the specified resource.
|
|
|
60 |
*
|
|
|
61 |
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
|
|
|
62 |
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
|
|
63 |
* @return \Illuminate\Http\Response
|
|
|
64 |
*/
|
|
|
65 |
public function edit({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
|
|
|
66 |
{
|
|
|
67 |
//
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
/**
|
|
|
71 |
* Update the specified resource in storage.
|
|
|
72 |
*
|
|
|
73 |
* @param \Illuminate\Http\Request $request
|
|
|
74 |
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
|
|
|
75 |
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
|
|
76 |
* @return \Illuminate\Http\Response
|
|
|
77 |
*/
|
|
|
78 |
public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
|
|
|
79 |
{
|
|
|
80 |
//
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
/**
|
|
|
84 |
* Remove the specified resource from storage.
|
|
|
85 |
*
|
|
|
86 |
* @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
|
|
|
87 |
* @param \{{ namespacedModel }} ${{ modelVariable }}
|
|
|
88 |
* @return \Illuminate\Http\Response
|
|
|
89 |
*/
|
|
|
90 |
public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
|
|
|
91 |
{
|
|
|
92 |
//
|
|
|
93 |
}
|
|
|
94 |
}
|