PHP code example of refinephp / laravel-refine
1. Go to this page and download the library: Download refinephp/laravel-refine 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/ */
refinephp / laravel-refine example snippets
use Refinephp\LaravelRefine\Traits\Filterable;
class User extends Model
{
use Filterable;
}
use App\Models\User;
class UserController extends Controller
{
public function index()
{
return User::filter()->get();
}
}
bash
php artisan vendor:publish --tag=laravel-refine