You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This publish will create a `model.stub` that will be used by `php artisan make:model` to set up new models. You should use this on projects that will only have models backed by FileMaker.
76
76
77
-
## Alternatively, use new make command
78
-
Alternatively, you can use the default `make:model` command with a new `--filemaker` flag. All options available to Laravel's native `make:model` command are still available for use.
79
-
80
-
```shell
81
-
php artisan make:model Model --filemaker
82
-
```
83
-
84
-
Note: If the `--filemaker` flag is not used, the model will be created as a standard Laravel model.
85
-
86
77
# Usage
87
78
With the package installed you can now have access to all the features of this package. There are a few different areas to configure.
88
79
@@ -135,7 +126,12 @@ cache_driver=file
135
126
## Model Classes
136
127
Creating model classes is the easiest way to access your FileMaker data, and is the most Laravel-like way of doing things. Create a new model class and change the extension class from `Model` to `FMModel`. This class change enables you to use the features of this package with your models.
137
128
129
+
### Artisan make:model command
130
+
You can use the default `php artisan make:model` command with a new `--filemaker` flag to make a new `FMModel` instead of the default `Model`. All options available to Laravel's native `make:model` command are still available for use.
0 commit comments