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
Before publishing assets, add `REPOSITORY_PHP_VERSION` variable to `.env` and set it to your version of choosing. Supported values are: 8.0, 7.4 (Default is 8.0).
11
-
12
10
Then run following command in console to publish necessary assets in your project directory.
|`repository:make-repository`| table_name, selected_db(optional) | -f, -d, -k, -g | Create new Base Repository |
39
+
|`repository:make-mysql-repository`| table_name | -f, -d, -k, -g | Create new MySql Repository class |
40
+
|`repository:make-redis-repository`| table_name | -f, -d, -k, -g | Create new Redis Repository class |
41
+
|`repository:make-all`| --table_names=table_names(optional) <br/>--selected_db=database(optional) | -a, -f, -d, -k, -g | Run all of the above commands |
42
+
44
43
45
44
### Options Explanation
46
45
-`-f|--force`: Force commands to override existing files.
@@ -49,6 +48,7 @@ List of artisan commands:
49
48
-`-g|--add-to-git`: Add created files to git repository.
50
49
-`-a|--all-tables`: Use all existing tables.
51
50
-`--table_names=`: Add table names, separate names with comma.
51
+
-`--selected_db=` : Use between `Mysql`,`Redis`, If it does not send, the value will return from `config/repository.php`
52
52
53
53
Example 1. Create new Entity for a table named 'users'.
0 commit comments