File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Support \Str ;
7
7
use Symfony \Component \Console \Input \InputOption ;
8
8
9
- class FMModelMakeCommand extends LaravelModelMakeCommand {
10
-
9
+ class FMModelMakeCommand extends LaravelModelMakeCommand
10
+ {
11
11
protected $ name = 'make:fm-model ' ;
12
12
13
13
/**
@@ -28,10 +28,10 @@ public function getStub()
28
28
{
29
29
$ stub = parent ::getStub ();
30
30
31
- if ($ this ->option ('filemaker ' )) {
31
+ if ($ this ->option ('filemaker ' )) {
32
32
$ stub = Str::replace ('/model. ' , '/fm.model. ' , $ stub );
33
33
34
- throw_if (!file_exists ($ stub ), new \RuntimeException (" This model type is not yet supported by Eloquent FileMaker. " ));
34
+ throw_if (! file_exists ($ stub ), new \RuntimeException (' This model type is not yet supported by Eloquent FileMaker. ' ));
35
35
}
36
36
37
37
return $ stub ;
Original file line number Diff line number Diff line change 4
4
5
5
use GearboxSolutions \EloquentFileMaker \Commands \FMModelMakeCommand ;
6
6
use GearboxSolutions \EloquentFileMaker \Services \FileMakerConnection ;
7
- use Illuminate \Foundation \Console \ModelMakeCommand as LaravelModelMakeCommand ;
8
7
use Illuminate \Support \ServiceProvider ;
9
8
10
9
class FileMakerConnectionServiceProvider extends ServiceProvider
@@ -51,11 +50,11 @@ public function register()
51
50
public function boot ()
52
51
{
53
52
$ this ->publishes ([
54
- __DIR__ . '/../Commands/stubs/fm.model.stub ' => base_path ('stubs/model.stub ' )
53
+ __DIR__ . '/../Commands/stubs/fm.model.stub ' => base_path ('stubs/model.stub ' ),
55
54
], 'eloquent-filemaker-override-model ' );
56
55
57
56
$ this ->publishes ([
58
- __DIR__ . '/../Commands/stubs/fm.model.stub ' => base_path ('stubs/fm.model.stub ' )
57
+ __DIR__ . '/../Commands/stubs/fm.model.stub ' => base_path ('stubs/fm.model.stub ' ),
59
58
], 'eloquent-filemaker-stubs ' );
60
59
}
61
60
}
You can’t perform that action at this time.
0 commit comments