Laravel Utils is a collection of useful tools for Laravel.
illegal/laravel-utils is a Laravel package for laravel utils is a collection of useful tools for laravel..
It currently has 0 GitHub stars and 3.093 downloads on Packagist (latest version v1.2).
Install it with composer require illegal/laravel-utils.
Discover more Laravel packages by illegal
or browse all Laravel packages to compare alternatives.
Last updated
This repository contains a collection of useful classes and traits for Laravel.
It is used mainly for illegal studio projects.
This traits can be used to add a prefix to your model's table name.
class MyModel extends Model
{
use HasPrefix;
protected $prefix = 'my_prefix_';
}
Alternatively you can use the getPrefix method to set the prefix.
This is useful if you want to set the prefix dynamically.
class MyModel extends Model
{
use HasPrefix;
public function getPrefix()
{
return config('my.prefix');
}
}