|
|
@ -24,7 +24,7 @@ class {$this->plural_model_name}Controller extends Controller |
|
|
/** |
|
|
/** |
|
|
* Display a listing of the {$this->single_model_var_name}. |
|
|
* Display a listing of the {$this->single_model_var_name}. |
|
|
* |
|
|
* |
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function index() |
|
|
public function index() |
|
|
{ |
|
|
{ |
|
|
@ -38,7 +38,7 @@ class {$this->plural_model_name}Controller extends Controller |
|
|
/** |
|
|
/** |
|
|
* Show the form for creating a new {$this->single_model_var_name}. |
|
|
* Show the form for creating a new {$this->single_model_var_name}. |
|
|
* |
|
|
* |
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function create() |
|
|
public function create() |
|
|
{ |
|
|
{ |
|
|
@ -51,8 +51,7 @@ class {$this->plural_model_name}Controller extends Controller |
|
|
* Store a newly created {$this->single_model_var_name} in storage. |
|
|
* Store a newly created {$this->single_model_var_name} in storage. |
|
|
* |
|
|
* |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function store(Request \$request) |
|
|
public function store(Request \$request) |
|
|
{ |
|
|
{ |
|
|
@ -75,8 +74,7 @@ class {$this->plural_model_name}Controller extends Controller |
|
|
* Display the specified {$this->single_model_var_name}. |
|
|
* Display the specified {$this->single_model_var_name}. |
|
|
* |
|
|
* |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function show({$this->model_name} \${$this->single_model_var_name}) |
|
|
public function show({$this->model_name} \${$this->single_model_var_name}) |
|
|
{ |
|
|
{ |
|
|
@ -87,8 +85,7 @@ class {$this->plural_model_name}Controller extends Controller |
|
|
* Show the form for editing the specified {$this->single_model_var_name}. |
|
|
* Show the form for editing the specified {$this->single_model_var_name}. |
|
|
* |
|
|
* |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function edit({$this->model_name} \${$this->single_model_var_name}) |
|
|
public function edit({$this->model_name} \${$this->single_model_var_name}) |
|
|
{ |
|
|
{ |
|
|
@ -102,8 +99,7 @@ class {$this->plural_model_name}Controller extends Controller |
|
|
* |
|
|
* |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function update(Request \$request, {$this->model_name} \${$this->single_model_var_name}) |
|
|
public function update(Request \$request, {$this->model_name} \${$this->single_model_var_name}) |
|
|
{ |
|
|
{ |
|
|
@ -123,8 +119,7 @@ class {$this->plural_model_name}Controller extends Controller |
|
|
* Remove the specified {$this->single_model_var_name} from storage. |
|
|
* Remove the specified {$this->single_model_var_name} from storage. |
|
|
* |
|
|
* |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function destroy({$this->model_name} \${$this->single_model_var_name}) |
|
|
public function destroy({$this->model_name} \${$this->single_model_var_name}) |
|
|
{ |
|
|
{ |
|
|
@ -165,7 +160,7 @@ class CategoriesController extends Controller |
|
|
/** |
|
|
/** |
|
|
* Display a listing of the category. |
|
|
* Display a listing of the category. |
|
|
* |
|
|
* |
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function index() |
|
|
public function index() |
|
|
{ |
|
|
{ |
|
|
@ -179,7 +174,7 @@ class CategoriesController extends Controller |
|
|
/** |
|
|
/** |
|
|
* Show the form for creating a new category. |
|
|
* Show the form for creating a new category. |
|
|
* |
|
|
* |
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function create() |
|
|
public function create() |
|
|
{ |
|
|
{ |
|
|
@ -192,8 +187,7 @@ class CategoriesController extends Controller |
|
|
* Store a newly created category in storage. |
|
|
* Store a newly created category in storage. |
|
|
* |
|
|
* |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function store(Request \$request) |
|
|
public function store(Request \$request) |
|
|
{ |
|
|
{ |
|
|
@ -216,8 +210,7 @@ class CategoriesController extends Controller |
|
|
* Display the specified category. |
|
|
* Display the specified category. |
|
|
* |
|
|
* |
|
|
* @param \App\Category \$category |
|
|
* @param \App\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function show(Category \$category) |
|
|
public function show(Category \$category) |
|
|
{ |
|
|
{ |
|
|
@ -228,8 +221,7 @@ class CategoriesController extends Controller |
|
|
* Show the form for editing the specified category. |
|
|
* Show the form for editing the specified category. |
|
|
* |
|
|
* |
|
|
* @param \App\Category \$category |
|
|
* @param \App\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function edit(Category \$category) |
|
|
public function edit(Category \$category) |
|
|
{ |
|
|
{ |
|
|
@ -243,8 +235,7 @@ class CategoriesController extends Controller |
|
|
* |
|
|
* |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function update(Request \$request, Category \$category) |
|
|
public function update(Request \$request, Category \$category) |
|
|
{ |
|
|
{ |
|
|
@ -264,8 +255,7 @@ class CategoriesController extends Controller |
|
|
* Remove the specified category from storage. |
|
|
* Remove the specified category from storage. |
|
|
* |
|
|
* |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function destroy(Category \$category) |
|
|
public function destroy(Category \$category) |
|
|
{ |
|
|
{ |
|
|
@ -307,7 +297,7 @@ class CategoriesController extends Controller |
|
|
/** |
|
|
/** |
|
|
* Display a listing of the category. |
|
|
* Display a listing of the category. |
|
|
* |
|
|
* |
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function index() |
|
|
public function index() |
|
|
{ |
|
|
{ |
|
|
@ -321,7 +311,7 @@ class CategoriesController extends Controller |
|
|
/** |
|
|
/** |
|
|
* Show the form for creating a new category. |
|
|
* Show the form for creating a new category. |
|
|
* |
|
|
* |
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function create() |
|
|
public function create() |
|
|
{ |
|
|
{ |
|
|
@ -334,8 +324,7 @@ class CategoriesController extends Controller |
|
|
* Store a newly created category in storage. |
|
|
* Store a newly created category in storage. |
|
|
* |
|
|
* |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function store(Request \$request) |
|
|
public function store(Request \$request) |
|
|
{ |
|
|
{ |
|
|
@ -358,8 +347,7 @@ class CategoriesController extends Controller |
|
|
* Display the specified category. |
|
|
* Display the specified category. |
|
|
* |
|
|
* |
|
|
* @param \App\Category \$category |
|
|
* @param \App\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function show(Category \$category) |
|
|
public function show(Category \$category) |
|
|
{ |
|
|
{ |
|
|
@ -370,8 +358,7 @@ class CategoriesController extends Controller |
|
|
* Show the form for editing the specified category. |
|
|
* Show the form for editing the specified category. |
|
|
* |
|
|
* |
|
|
* @param \App\Category \$category |
|
|
* @param \App\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\View\View |
|
|
*/ |
|
|
*/ |
|
|
public function edit(Category \$category) |
|
|
public function edit(Category \$category) |
|
|
{ |
|
|
{ |
|
|
@ -385,8 +372,7 @@ class CategoriesController extends Controller |
|
|
* |
|
|
* |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \Illuminate\Http\Request \$request |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function update(Request \$request, Category \$category) |
|
|
public function update(Request \$request, Category \$category) |
|
|
{ |
|
|
{ |
|
|
@ -406,8 +392,7 @@ class CategoriesController extends Controller |
|
|
* Remove the specified category from storage. |
|
|
* Remove the specified category from storage. |
|
|
* |
|
|
* |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* @param \App\Entities\References\Category \$category |
|
|
* |
|
|
|
|
|
* @return \Illuminate\Http\Response |
|
|
|
|
|
|
|
|
* @return \Illuminate\Routing\Redirector |
|
|
*/ |
|
|
*/ |
|
|
public function destroy(Category \$category) |
|
|
public function destroy(Category \$category) |
|
|
{ |
|
|
{ |
|
|
|