Download the PHP package edujugon/laravel-extra-features without Composer
On this page you can find all versions of the php package edujugon/laravel-extra-features. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download edujugon/laravel-extra-features
More information about edujugon/laravel-extra-features
Files in edujugon/laravel-extra-features
Package laravel-extra-features
Short Description This package provides useful features to give extra functionality to your Laravel project
License MIT
Informations about the package laravel-extra-features
Laravel Extra Features
This package provides useful features to give extra functionality to your Laravel project.
Installation
type in console:
Laravel 5.*
Register the package service by adding it to the providers array.
IMPORTANT! Ensure you put that line at the end of the providers list.
Publish the package's configuration file to the application's own config directory
The above line will create a file called extrafeatures.php
under config folder.
Feature List
Functionality
Traits
Services
Redirect No Page Found
When user tries to load an unknown url, it's redirected to a specific known url.
!IMPORTANT, This feature won't work for local environment. That's an intended behaviour no to hide any redirect/request error.
- Go to
config/extrafeatures.php
file and update the value for the keyREDIRECT_NO_PAGE_FOUND
.
Carbon Locale
Carbon language is set based on the laravel's app locale. By default it is enabled. You may disable changing CARBON_LOCALE
value to false
in config/extrafeatures.php
file.
DateScopesTrait
Provide extra features on year, month and day to retrieve data for Laravel Eloquent.
Adding $dateColumn as model class's property you don't need to pass the $dateColumn parameter to the methods.
QueryCreator
Create DB query dynamically
API list
Table
table
method sets the table name for the Query.
Syntax
Build
build
method builds the query based on passed array.
Syntax