1. Go to this page and download the library: Download kristories/laravel-rsd 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/ */
use Kristories\Rsd\ReservableTrait;
use Illuminate\Database\Eloquent\Model;
class YourModel extends Model
{
use ReservableTrait;
protected $reserved_column = 'name';
}
use Kristories\Rsd\ReservableTrait;
use Illuminate\Database\Eloquent\Model;
class YourModel extends Model
{
use ReservableTrait;
protected $reserved_column = 'name';
public function scopeReservedExtra($query)
{
return $query->where('active', true);
}
}
php artisan vendor:publish --tag=config
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.