Laradeck Commands
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
A set of useful Laravel artisan commands, (*2)
-
php artisan laradeck:view {name} Create a new view
-
php artisan laradeck:download {url} Download file from url
Install
Downloading
Via Composer, (*3)
``` bash
$ composer require ngtfkx/laradeck-commands, (*4)
### Registering the service provider
If you're using Laravel 5.5+, you can skip this step. The service provider will have already been registered
thanks to auto-discovery.
Otherwise, add line `Ngtfkx\Laradeck\Commands\LaradeckCommandsServiceProvider::class,` manually in your `config\app.php` file.
## Usage
### laradeck:view
``` bash
# Create a new view
php artisan laradeck:view admin.users.show
``` bash, (*5)
Create a new view and rewrite old with same name
php artisan laradeck:view admin.users.show --force, (*6)
``` bash
# Create a new view with @extends directive
php artisan laradeck:view admin.users.show --extends=layouts.app
``` bash, (*7)
Create a new view with @section directive
php artisan laradeck:view admin.users.show --section=content --section=sidebar, (*8)
``` bash
# Create a new view with @section directive (other syntax)
php artisan laradeck:view admin.users.show --section=content,sidebar
Similarly for @push (--stack) and @component (--component) directives., (*9)
laradeck:download
``` bash, (*10)
download file and save it as storage/app/8SE_CIgzZw8.jpg
php artisan laradeck:download https://pp.userapi.com/c7008/v7008434/a3dc5/8SE_CIgzZw8.jpg, (*11)
``` bash
# download file and save it as storage/app/123.jpg
php artisan laradeck:download https://pp.userapi.com/c7008/v7008434/a3dc5/8SE_CIgzZw8.jpg --name=123.jpg
``` bash, (*12)
download file and save it as storage/app/test/photo/123.jpg
php artisan laradeck:download https://pp.userapi.com/c7008/v7008434/a3dc5/8SE_CIgzZw8.jpg --name=123.jpg --path=test/photo
```, (*13)
Change log
Please see CHANGELOG for more information on what has changed recently., (*14)
Credits
License
The MIT License (MIT). Please see License File for more information., (*15)