Package Data | |
---|---|
Maintainer Username: | novius |
Maintainer Contact: | team-developpeurs@novius.com (Novius Agency) |
Package Create Date: | 2017-08-25 |
Package Last Update: | 2024-03-22 |
Home Page: | |
Language: | PHP |
License: | AGPL-3.0 |
Last Refreshed: | 2024-12-15 15:07:52 |
Package Statistics | |
---|---|
Total Downloads: | 19,732 |
Monthly Downloads: | 259 |
Daily Downloads: | 0 |
Total Stars: | 7 |
Total Watchers: | 4 |
Total Forks: | 4 |
Total Open Issues: | 0 |
This package contains some useful Artisan commands.
This version is compatible with Laravel >=5.7.
For Laravel >=5.5.0 and <5.7 please use 0.3 version.
In your terminal:
composer install novius/laravel-artisan-commands
Then, if you are on Laravel 5.4 (no need for Laravel 5.5 and higher), register the service provider to your config/app.php
file:
'providers' => [
...
Novius\ArtisanCommands\ArtisanCommandsServiceProvider::class,
];
db:configure
This command replaces some variables into .env
and config/database.php
files,
in order to configure database name, user and password when you create a new project.
php artisan db:configure
db:create
This command tries to create a database, for a given connection:
php artisan db:create --connection=[connection]
[connection]
have to be a valid connection, defined into config/database.php
configuration file.
For instance, php artisan db:create --connection=mysql
will call config('database.connections.mysql')
to get driver, host, database name, etc.
Run the tests with:
./test.sh
Run php-cs with:
./cs.sh
Contributions are welcome! Leave an issue on Github, or create a Pull Request.
This package is under GNU Affero General Public License v3 or (at your option) any later version.