slokee / supporter
Laravel Supporter is a powerful utility package designed to enhance development speed by providing ready-to-use code snippets. This package helps developers streamline their workflow by reducing repetitive coding tasks, ensuring cleaner and more efficient Laravel applications.
Requires
- php: >=8.0
- laravel/framework: ^11.0 || ^12.0
Requires (Dev)
- laravel/pint: ^1.22
README
Laravel Supporter is a powerful utility package designed to enhance development speed by providing ready-to-use code snippets. This package helps developers streamline their workflow by reducing repetitive coding tasks, ensuring cleaner and more efficient Laravel applications.
Installation
composer require slokee/supporter
Configuration
Publish the configuration file (if required):
php artisan vendor:publish --provider="Slokee\Supporter\SupportServiceProvider"
Features
- Validation Rules - Custom validation rules to extend Laravel's validation capabilities.
- Casts - Custom Eloquent model casts for better data handling.
- Commands - Artisan commands to generate services, repositories, and more.
- Scopes:
- Local Scopes - Predefined local model scopes for common queries.
- Global Scopes - Global query scopes for automatic model filtering.
- Utilities - Additional helper functions to simplify common operations.
- Enums - Enum classes to standardize values like named colors.
- Blade Diretives - Common Custom Blade directives for faster development.
Usage
Refer to the individual documentation files for detailed usage examples.
Publishing Stubs and Configurations
To customize stub files or configurations used by the commands, you can publish them using the following tags:
# Publish configuration file php artisan vendor:publish --tag=supporter-config # Publish translation files php artisan vendor:publish --tag=supporter-translations # Publish stub files php artisan vendor:publish --tag=supporter-stubs
This will publish:
config/supporter.php
stubs/supporter/*
Contribution
We welcome contributions! Please check the Contribution Guide for more details on how to get involved.
License
This package is open-source software licensed under the MIT license.
Reporting Issues
If you encounter a bug or have a feature request, please open an issue on GitHub with detailed information.
Contact
For reporting bugs or further inquiries, you can reach out via email at: contact@slokee.com