Skip to content

Commit c48ebe5

Browse files
committed
moved artisan command
1 parent c2934f6 commit c48ebe5

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ php artisan vendor:publish --tag=eloquent-filemaker-override-model
7474
```
7575
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.
7676

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-
8677
# Usage
8778
With the package installed you can now have access to all the features of this package. There are a few different areas to configure.
8879

@@ -135,7 +126,12 @@ cache_driver=file
135126
## Model Classes
136127
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.
137128

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.
138131

132+
```shell
133+
php artisan make:model MyNewModel --filemaker
134+
```
139135

140136
#### Things that work
141137

0 commit comments

Comments
 (0)