Skip to content

Commit 62b725e

Browse files
authored
Merge pull request #121 from RonasIT/112_fix_templates
feat: change templates
2 parents 80678b9 + 2670cbc commit 62b725e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

stubs/controller.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
use {{$servicesNamespace}}\{{$entity}}Service;
2020
@if (in_array('D', $options) || in_array('U', $options))
2121
use Symfony\Component\HttpFoundation\Response;
22-
2322
@endif
23+
2424
class {{$entity}}Controller extends Controller
2525
{
2626
@if (in_array('C', $options))

stubs/model.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class {{$entity}} extends Model
88
{
9-
use ModelTrait, HasFactory;
9+
use HasFactory, ModelTrait;
1010

1111
protected $fillable = [
1212
@foreach($fields as $field)

stubs/test.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class {{$entity}}Test extends TestCase
2121
protected static ModelTestState ${{\Illuminate\Support\Str::camel($entity)}}State;
2222

2323
@endif
24-
public function setUp() : void
24+
public function setUp(): void
2525
{
2626
parent::setUp();
2727
@if ($withAuth)

0 commit comments

Comments
 (0)