Download the PHP package emmanuelpcg/laravel-basics without Composer
On this page you can find all versions of the php package emmanuelpcg/laravel-basics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emmanuelpcg/laravel-basics
More information about emmanuelpcg/laravel-basics
Files in emmanuelpcg/laravel-basics
Package laravel-basics
Short Description Pacote de funcionalidades para o Laravel com o básico como fazer o crud de uma entidade, manipular imagens, querys simples e etc
License MPL-2.0
Rated 5.00 based on 1 reviews
Informations about the package laravel-basics
Emmanuelpcg laravel-basics
Description
Package with basic starter features for Laravel.
- Install
- If Builder
- Constants
- Query Builder Apply Filters
- Model Basics
- Image Manipulation
Install
If Builder
Creates an eloquent builder that checks a condition to be executed
In app/providers/AppServiceProvider.php add:
without operator param:
with operator param:
Constants
creates an object with extra features of the constants:
Query Builder Apply Filters
Add Query filters in Pipelines Requests
For example: I have Car model and want to apply a filter by color attribute
create a class with name of attribute:
And for example in Service Repository Pattern:
In your Repository you can do this:
And now if you pass color in request by query param GET the filter will be applied.
Model Basics Examples
Image Manipulation
All versions of laravel-basics with dependencies
illuminate/contracts Version ^v11.27.2
illuminate/http Version ^v11.27.2
illuminate/database Version ^v11.27.2
illuminate/pipeline Version ^v11.27.2
intervention/image Version ^3.8.0