From cd266d48a9eed17e38a0837a3666c4a6fa910f8f Mon Sep 17 00:00:00 2001 From: Axel Libori Roch Date: Thu, 23 Feb 2023 11:05:30 +0100 Subject: [PATCH 1/2] Add few tables on the exclude array, Fix some typo errors --- config/models.php | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/config/models.php b/config/models.php index 9eb43c1a..85617c33 100644 --- a/config/models.php +++ b/config/models.php @@ -161,7 +161,7 @@ | Base Files |-------------------------------------------------------------------------- | - | By default, your models will be generated in your models path, but + | By default, your models will be generated in your models' path, but | when you generate them again they will be replaced by new ones. | You may want to customize your models and, at the same time, be | able to generate them as your tables change. For that, you @@ -211,7 +211,7 @@ | TRUE: Schema name will be prepended on the table | FALSE:Table name will be set without schema name. | NULL: Table name will follow laravel pattern, - | i.e if class name(plural) matches table name, then table name will not be added + | i.e. if class name(plural) matches table name, then table name will not be added */ 'qualified_tables' => false, @@ -253,11 +253,11 @@ | Casts |-------------------------------------------------------------------------- | - | You may want to specify which of your table fields should be casted as - | something different than a string. For instance, you may want a - | text field be casted as an array or and object. + | You may want to specify which of your table fields should be cast as + | something different from a string. For instance, you may want a + | text field be cast as an array or and object. | - | You may define column patterns which will be casted using the value + | You may define column patterns which will be cast using the value | assigned. We have defined some fields for you. Feel free to | modify them to fit your needs. | @@ -281,6 +281,16 @@ 'except' => [ 'migrations', + 'failed_jobs', + 'password_resets', + 'personal_access_tokens', + 'notifications', + 'nova_field_attachments', + 'nova_notifications', + 'nova_pending_field_attachments', + 'telescope_entries', + 'telescope_entries_tags', + 'telescope_monitoring', ], /* @@ -416,7 +426,7 @@ |-------------------------------------------------------------------------- | Move $fillable property to base files |-------------------------------------------------------------------------- - | When base_files is true you can set fillable_in_base_files to true + | When base_files is true you can set fillable_in_base_files to true | if you want the $fillable to be generated in base files | */ From f8c17d9d72e83ebb3138ea5a76e9731d18ef8cb1 Mon Sep 17 00:00:00 2001 From: Axel Libori Roch Date: Tue, 4 Jul 2023 15:35:51 +0200 Subject: [PATCH 2/2] fix(config): Clean some non default tables on except array --- config/models.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/config/models.php b/config/models.php index 85617c33..c5b09cd9 100644 --- a/config/models.php +++ b/config/models.php @@ -161,7 +161,7 @@ | Base Files |-------------------------------------------------------------------------- | - | By default, your models will be generated in your models' path, but + | By default, your models will be generated in your models path, but | when you generate them again they will be replaced by new ones. | You may want to customize your models and, at the same time, be | able to generate them as your tables change. For that, you @@ -254,7 +254,7 @@ |-------------------------------------------------------------------------- | | You may want to specify which of your table fields should be cast as - | something different from a string. For instance, you may want a + | something other than a string. For instance, you may want a | text field be cast as an array or and object. | | You may define column patterns which will be cast using the value @@ -284,13 +284,7 @@ 'failed_jobs', 'password_resets', 'personal_access_tokens', - 'notifications', - 'nova_field_attachments', - 'nova_notifications', - 'nova_pending_field_attachments', - 'telescope_entries', - 'telescope_entries_tags', - 'telescope_monitoring', + 'password_reset_tokens', ], /*