-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for triple generators - user custom, boilerplate, falling back to laravel
- Loading branch information
1 parent
1815c11
commit 470d444
Showing
13 changed files
with
78 additions
and
319 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,25 @@ | ||
<?php | ||
|
||
namespace DummyNamespace; | ||
namespace {{ namespace }}; | ||
|
||
use DummyFullModelClass; | ||
use ParentDummyFullModelClass; | ||
use Illuminate\Http\Request; | ||
use DummyRootNamespaceHttp\Controllers\Controller; | ||
use {{ rootNamespace }}Transformers\BaseTransformer; | ||
use {{ namespacedModel }}; | ||
|
||
class DummyClass extends Controller | ||
class {{ class }} extends Controller | ||
{ | ||
/** | ||
* Display a listing of the resource. | ||
* | ||
* @param \ParentDummyFullModelClass $ParentDummyModelVariable | ||
* @return \Illuminate\Http\Response | ||
* @var {{ model }} The primary model associated with this controller | ||
*/ | ||
public function index(ParentDummyModelClass $ParentDummyModelVariable) | ||
{ | ||
// | ||
} | ||
public static $model = {{ model }}::class; | ||
|
||
/** | ||
* Show the form for creating a new resource. | ||
* | ||
* @param \ParentDummyFullModelClass $ParentDummyModelVariable | ||
* @return \Illuminate\Http\Response | ||
* @var {{ parentModel }} The parent model of the model, in the case of a child rest controller | ||
*/ | ||
public function create(ParentDummyModelClass $ParentDummyModelVariable) | ||
{ | ||
// | ||
} | ||
public static $parentModel = {{ parentModel }}::class; | ||
|
||
/** | ||
* Store a newly created resource in storage. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \ParentDummyFullModelClass $ParentDummyModelVariable | ||
* @return \Illuminate\Http\Response | ||
* @var null|BaseTransformer The transformer this controller should use, if overriding the model & default | ||
*/ | ||
public function store(Request $request, ParentDummyModelClass $ParentDummyModelVariable) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Display the specified resource. | ||
* | ||
* @param \ParentDummyFullModelClass $ParentDummyModelVariable | ||
* @param \DummyFullModelClass $DummyModelVariable | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function show(ParentDummyModelClass $ParentDummyModelVariable, DummyModelClass $DummyModelVariable) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Show the form for editing the specified resource. | ||
* | ||
* @param \ParentDummyFullModelClass $ParentDummyModelVariable | ||
* @param \DummyFullModelClass $DummyModelVariable | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function edit(ParentDummyModelClass $ParentDummyModelVariable, DummyModelClass $DummyModelVariable) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Update the specified resource in storage. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \ParentDummyFullModelClass $ParentDummyModelVariable | ||
* @param \DummyFullModelClass $DummyModelVariable | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function update(Request $request, ParentDummyModelClass $ParentDummyModelVariable, DummyModelClass $DummyModelVariable) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Remove the specified resource from storage. | ||
* | ||
* @param \ParentDummyFullModelClass $ParentDummyModelVariable | ||
* @param \DummyFullModelClass $DummyModelVariable | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function destroy(ParentDummyModelClass $ParentDummyModelVariable, DummyModelClass $DummyModelVariable) | ||
{ | ||
// | ||
} | ||
public static $transformer = null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.