Download the PHP package boomdraw/laravel-helpers without Composer
On this page you can find all versions of the php package boomdraw/laravel-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download boomdraw/laravel-helpers
More information about boomdraw/laravel-helpers
Files in boomdraw/laravel-helpers
Package laravel-helpers
Short Description Laravel heleprs
License MIT
Homepage https://github.com/boomdraw/laravel-helpers
Informations about the package laravel-helpers
Laravel helpers package
This package allows you to generate helper classes with facades and aliases. Also it provides some helper commands and built in helpers.
Once installed you can do stuff like this:
Commands
Run config:cache
, route:cache
, view:cache
and helpers:cache
at once
Run cache:clear
, config:clear
, route:clear
, view:clear
and helpers:clear
at once
cache:clear-all
alias
Add helpers to cache to get them without filesystem watching
Remove helpers from cache
Run ide-helper:generate
, ide-helper:meta
and ide-helper:models --nowrite
at once.
To run this command you should install barryvdh/laravel-ide-helper
and doctrine/dbal
first!
Generate helper class with facade in your project
Traits
Route key getter
Sets route key as id for admin* routes and as slug for other
Service name getter
Adds getServiceName()
method to generate service name for helper using classname
Table name getter
Adds getTableName()
method to get model table name
Adds getMorphName()
method to get model morph name
Helpers
SeoHelper
Adds columns()
method that allows fast adding meta_keywords, meta_description and robots columns to table migration
StrHelper
Adds between
, wbetween
and utrim
methods
Global methods
str_between
, str_wbetween
, utrim
Installation
Laravel
You can install the package via composer:
You can publish the config file with:
When published, the config/helpers.php
config file contains:
Todo
Add other seo features
The MIT License (MIT).
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.