This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.3", | |
"info": { | |
"title": "App - OpenAPI 3.0", | |
"description": "This is a sample end-point on the OpenAPI 3.0 specification. You can find out more about", | |
"termsOfService": "http://swagger.io/terms/", | |
"version": "1.0.11" | |
}, | |
"servers": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use eloquentFilter\QueryFilter\ModelFilters\Filterable; | |
class User extends Model | |
{ | |
use Filterable; | |
private static $whiteListFilter =[ | |
'username', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
/** | |
* Class UsersController. | |
*/ | |
class UsersController | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\User; | |
use Illuminate\Http\Request; | |
class UserController extends Controller | |
{ | |
public function index(Request $request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Illuminate\Database\Eloquent\Builder; | |
/** | |
* Trait usersFilter. | |
*/ | |
trait usersFilter | |
{ | |
/** | |
* @param \Illuminate\Database\Eloquent\Builder $builder | |
* @param $value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use eloquentFilter\QueryFilter\ModelFilters\ModelFilters; | |
/** | |
* Class UsersController. | |
*/ | |
class UsersController | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Models; | |
use eloquentFilter\QueryFilter\ModelFilters\Filterable; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Class User. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\User; | |
use Illuminate\Http\Request; | |
class UserController extends Controller | |
{ | |
public function index(Request $request) |