1. Go to this page and download the library: Download mdt-star/nexus 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 MdtStar\Nexus\Scopes\HasDataScope;
class Article extends Model
{
use HasDataScope;
}
use MdtStar\Nexus\Contracts\HasModelAccess;
use MdtStar\Nexus\Traits\HasModelAccessTrait;
class Article extends Model implements HasModelAccess
{
use HasModelAccessTrait;
}
use MdtStar\Nexus\Contracts\HasPermission;
use MdtStar\Nexus\Traits\HasPermissionTrait;
class Admin extends Model implements HasPermission
{
use HasPermissionTrait;
}