1. Go to this page and download the library: Download lexxsoft/odata 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/ */
lexxsoft / odata example snippets
use LexxSoft\odata\Traits\Restable;
class Log extends Model
{
use HasFactory, Restable;
}
/** Extended Role model */
namespace App\Models;
use Lexxsoft\Odata\Primitives\Restable;
class Role extends \Spatie\Permission\Models\Role
{
use Restable;
}
/** Extended Permission model */
namespace App\Models;
use Lexxsoft\Odata\Traits\Restable;
class Permission extends \Spatie\Permission\Models\Permission
{
use Restable;
}