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
Copy file name to clipboardExpand all lines: README.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,11 +80,12 @@ You can fill the file in this way:
80
80
81
81
namespace App\Models;
82
82
83
+
use HiFolks\Fusion\Traits\FusionBaseModelTrait;
84
+
use Illuminate\Database\Eloquent\Model;
83
85
84
-
use HiFolks\Fusion\Models\FusionBaseModel;
85
-
86
-
class Article extends FusionBaseModel
86
+
class Article extends Model
87
87
{
88
+
use FusionBaseModelTrait;
88
89
89
90
public function frontmatterFields(): array
90
91
{
@@ -285,7 +286,7 @@ php artisan fusion:check
285
286
286
287
### Using the Check Model command
287
288
288
-
To inspect the Model file and check if it extends the right class and uses the proper Traits to be a Model compatible with Markdown files, you can use the `fusion:check-model` command:
289
+
To inspect the Model file and check if it extends the right class to be a Model compatible with Markdown files, you can use the `fusion:check-model` command:
289
290
290
291
291
292
```shell
@@ -301,7 +302,22 @@ App\Models\Article extends correctly the class HiFolks\Fusion\Models\FusionBaseM
With the version 1 we simplified and we reduced the requirements of a Model class.
308
+
Now you can extend the classic Model sub class for Eloquent Models and just use the traits FusionBaseModelTrait for enabling the "hidrate" logic provided by Fusion.
0 commit comments