@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php namespace Savannabits\JetstreamInertiaGenerator\Generators\Traits; |
2 | 2 | |
3 | +use Illuminate\Support\Str; |
|
3 | 4 | use Savannabits\JetstreamInertiaGenerator\Generators\Controller; |
4 | 5 | use Savannabits\JetstreamInertiaGenerator\Generators\Model; |
5 | -use Illuminate\Support\Str; |
|
6 | 6 | |
7 | 7 | trait Names |
8 | 8 | { |
@@ -1,7 +1,5 @@ |
||
1 | 1 | <?php namespace Savannabits\JetstreamInertiaGenerator\Generators; |
2 | 2 | |
3 | -use Doctrine\DBAL\Schema\ForeignKeyConstraint; |
|
4 | -use Illuminate\Support\Str; |
|
5 | 3 | use Symfony\Component\Console\Input\InputOption; |
6 | 4 | |
7 | 5 | class UpdateRequest extends ClassGenerator { |
@@ -152,6 +152,11 @@ |
||
152 | 152 | return false; |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param string $type |
|
157 | + * |
|
158 | + * @return string |
|
159 | + */ |
|
155 | 160 | protected function buildForm($type=null) { |
156 | 161 | $belongsTos = $this->setBelongsToRelations(); |
157 | 162 | $relatables = $this->getVisibleColumns($this->tableName, $this->modelVariableName)->filter(function($column) use($belongsTos) { |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php namespace Savannabits\JetstreamInertiaGenerator\Generators; |
2 | 2 | |
3 | -use Doctrine\DBAL\Schema\ForeignKeyConstraint; |
|
4 | 3 | use Illuminate\Support\Str; |
5 | 4 | use Symfony\Component\Console\Input\InputOption; |
6 | 5 |
@@ -138,6 +138,9 @@ discard block |
||
138 | 138 | |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @return string |
|
143 | + */ |
|
141 | 144 | protected function buildForm() { |
142 | 145 | |
143 | 146 | return view('jig::'.$this->view, [ |
@@ -162,6 +165,9 @@ discard block |
||
162 | 165 | ])->render(); |
163 | 166 | } |
164 | 167 | |
168 | + /** |
|
169 | + * @return string |
|
170 | + */ |
|
165 | 171 | protected function buildFormJs() { |
166 | 172 | return view('jig::'.$this->viewJs, [ |
167 | 173 | 'modelJSName' => $this->formJsRelativePath, |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php namespace Savannabits\JetstreamInertiaGenerator\Generators; |
2 | 2 | |
3 | -use Illuminate\Support\Str; |
|
4 | 3 | use Symfony\Component\Console\Input\InputOption; |
5 | 4 | |
6 | 5 | class ViewFullForm extends ViewGenerator { |
@@ -75,6 +75,9 @@ |
||
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @return string |
|
80 | + */ |
|
78 | 81 | protected function buildView() { |
79 | 82 | |
80 | 83 | return view('jig::'.$this->view, [ |
@@ -4,8 +4,6 @@ |
||
4 | 4 | namespace Savannabits\JetstreamInertiaGenerator\Helpers; |
5 | 5 | |
6 | 6 | |
7 | -use Illuminate\Contracts\Pagination\LengthAwarePaginator; |
|
8 | -use Illuminate\Support\Collection; |
|
9 | 7 | use Symfony\Component\HttpFoundation\HeaderBag; |
10 | 8 | |
11 | 9 | class ApiResponse |