PHP code example of illegal / laravel-utils
1. Go to this page and download the library: Download illegal/laravel-utils library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
illegal / laravel-utils example snippets
class MyModel extends Model
{
use HasPrefix;
protected $prefix = 'my_prefix_';
}
class MyModel extends Model
{
use HasPrefix;
public function getPrefix()
{
return config('my.prefix');
}
}