teners / laravel-extras
Extend laravel applications with more artisan commands, traits and useful helper classes
Requires (Dev)
- orchestra/testbench: ^8.23.2
- pestphp/pest: ^2.34.7
README
Laravel Extras is a package that extend Laravel Application with more artisan commands and useful traits and helper classes.
Installation
To install Laravel Extras, run the following command in your terminal:
composer require teners/laravel-extras
Publish the package configuration file
php artisan vendor:publish --provider="Teners\LaravelExtras\LaravelExtrasServiceProvider" --tag="extras-config"
And the migrations file if you would be using the files model
php artisan vendor:publish --provider="Teners\LaravelExtras\LaravelExtrasServiceProvider" --tag="extras-migrations"
Available Extras
Artisan Commands:
Extra Traits:
Extra Helpers:
Extra Models:
Make Blade
Creates a blade file inside the /resource/views/ directory.
php artisan make:trait {name}
Example:
php artisan make:blade index
# or
php artisan make:blade user/index
Make Trait
Creates a new Trait class in the App/Traits directory.
php artisan make:trait {name}
Example:
php artisan make:trait LocationTrait
# or
php artisan make:trait Security/LocationTrait
Log Clear
Clears log data from /storage/logs/ directory.
php artisan log:clear
Contributions
Contributions are welcome via Pull Requests on Github.
- Please document any change you made as neccesary in the README.md.
- Pleas make only one pull request per feature/fix.
- See below for some ideas on what you can help with.
- Option to generate file thumbnail in FileUploadTrait
- image/intervention for images, FFmeg for Videos
- make:service
- make:repository
- contruct:with-values
Add and set public values in the contruct of files generated with other artisan commands, e.g: make:event, make:mail, make:notification - cast to slug
Extend Cast to provide 'slug' cast - MakeArrayTrait
- Option to generate file thumbnail in FileUploadTrait
Issues
Please report any issue you encounter in using the package through the Github Issues tab.
Testing
composer test
Credits
Contributors
Contributors list will be added here
License
The MIT License (MIT). Please see License File for more information.