update code
This commit is contained in:
60
app/Repositories/Eloquents/AttachmentRepositoryEloquent.php
Normal file
60
app/Repositories/Eloquents/AttachmentRepositoryEloquent.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\AttachmentRepository;
|
||||
use App\Entities\Attachment;
|
||||
|
||||
/**
|
||||
* Class AttachmentRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class AttachmentRepositoryEloquent extends BaseRepository implements AttachmentRepository
|
||||
{
|
||||
/*
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'document_id' => '=',
|
||||
'name' => 'like',
|
||||
'extension' => '=',
|
||||
'size' => '=',
|
||||
'path' => 'like',
|
||||
|
||||
'document.id' => '=',
|
||||
'document.symbol' => 'like',
|
||||
'document.abstract' => 'like',
|
||||
'document.book_id' => '=',
|
||||
'document.type_id' => '=',
|
||||
'document.signer_id' => '=',
|
||||
'document.creator_id' => '=',
|
||||
'document.writer_id' => '=',
|
||||
'document.effective_at' => 'like',
|
||||
'document.sign_at' => 'like',
|
||||
'document.publisher_id' => 'like',
|
||||
'document.link_id' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Attachment::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
56
app/Repositories/Eloquents/BookRepositoryEloquent.php
Normal file
56
app/Repositories/Eloquents/BookRepositoryEloquent.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\BookRepository;
|
||||
use App\Entities\Book;
|
||||
|
||||
/**
|
||||
* Class BookRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class BookRepositoryEloquent extends BaseRepository implements BookRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
|
||||
'documents.id' => '=',
|
||||
'documents.symbol' => 'like',
|
||||
'documents.abstract' => 'like',
|
||||
'documents.book_id' => '=',
|
||||
'documents.type_id' => '=',
|
||||
'documents.signer_id' => '=',
|
||||
'documents.creator_id' => '=',
|
||||
'documents.writer_id' => '=',
|
||||
'documents.effective_at' => 'like',
|
||||
'documents.sign_at' => 'like',
|
||||
'documents.publisher_id' => 'like',
|
||||
'documents.link_id' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Book::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
66
app/Repositories/Eloquents/DepartmentRepositoryEloquent.php
Normal file
66
app/Repositories/Eloquents/DepartmentRepositoryEloquent.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\DepartmentRepository;
|
||||
use App\Entities\Department;
|
||||
|
||||
/**
|
||||
* Class DepartmentRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class DepartmentRepositoryEloquent extends BaseRepository implements DepartmentRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
'tel' => '=',
|
||||
|
||||
'documents.id' => '=',
|
||||
'documents.symbol' => 'like',
|
||||
'documents.abstract' => 'like',
|
||||
'documents.book_id' => '=',
|
||||
'documents.type_id' => '=',
|
||||
'documents.signer_id' => '=',
|
||||
'documents.creator_id' => '=',
|
||||
'documents.writer_id' => '=',
|
||||
'documents.effective_at' => 'like',
|
||||
'documents.sign_at' => 'like',
|
||||
'documents.publisher_id' => 'like',
|
||||
'documents.link_id' => '=',
|
||||
|
||||
'users.id' => '=',
|
||||
'users.name' => 'like',
|
||||
'users.email' => '=',
|
||||
'users.tel' => '=',
|
||||
'users.birthday' => '=',
|
||||
'users.department_id' => '=',
|
||||
'users.title_id' => '=',
|
||||
'users.active' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Department::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
108
app/Repositories/Eloquents/DocumentRepositoryEloquent.php
Normal file
108
app/Repositories/Eloquents/DocumentRepositoryEloquent.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\DocumentRepository;
|
||||
use App\Entities\Document;
|
||||
|
||||
/**
|
||||
* Class DocumentRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class DocumentRepositoryEloquent extends BaseRepository implements DocumentRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'symbol' => 'like',
|
||||
'abstract' => 'like',
|
||||
'book_id' => '=',
|
||||
'type_id' => '=',
|
||||
'signer_id' => '=',
|
||||
'creator_id' => '=',
|
||||
'effective_at' => 'like',
|
||||
'sign_at' => 'like',
|
||||
'publisher_id' => 'like',
|
||||
'link_id' => '=',
|
||||
|
||||
'attachments.id' => '=',
|
||||
|
||||
'receivers.id' => '=',
|
||||
'receivers.email' => '=',
|
||||
|
||||
'organizes.id' => '=',
|
||||
'organizes.name' => 'like',
|
||||
|
||||
'type.id' => '=',
|
||||
'type.name' => 'like',
|
||||
|
||||
'book.id' => '=',
|
||||
'book.name' => 'like',
|
||||
|
||||
'publisher.id' => '=',
|
||||
'publisher.name' => 'like',
|
||||
|
||||
'signer.id' => '=',
|
||||
'signer.name' => 'like',
|
||||
'signer.description' => 'like',
|
||||
|
||||
'creator.id' => '=',
|
||||
'creator.name' => 'like',
|
||||
'creator.email' => '=',
|
||||
'creator.department_id' => '=',
|
||||
'creator.title_id' => '=',
|
||||
|
||||
'linkTo.id' => '=',
|
||||
'linkTo.symbol' => 'like',
|
||||
'linkTo.abstract' => 'like',
|
||||
'linkTo.book_id' => '=',
|
||||
'linkTo.type_id' => '=',
|
||||
'linkTo.signer_id' => '=',
|
||||
'linkTo.creator_id' => '=',
|
||||
'linkTo.writer_id' => '=',
|
||||
'linkTo.effective_at' => 'like',
|
||||
'linkTo.sign_at' => 'like',
|
||||
'linkTo.publisher_id' => 'like',
|
||||
'linkTo.attachments' => 'like',
|
||||
'linkTo.link_id' => '=',
|
||||
|
||||
'linked.id' => '=',
|
||||
'linked.symbol' => 'like',
|
||||
'linked.abstract' => 'like',
|
||||
'linked.book_id' => '=',
|
||||
'linked.type_id' => '=',
|
||||
'linked.signer_id' => '=',
|
||||
'linked.creator_id' => '=',
|
||||
'linked.writer_id' => '=',
|
||||
'linked.effective_at' => 'like',
|
||||
'linked.sign_at' => 'like',
|
||||
'linked.publisher_id' => 'like',
|
||||
'linked.attachments' => 'like',
|
||||
'linked.link_id' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Document::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(\App\Criteria\DocumentCriteria::class);
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\DocumentTypeRepository;
|
||||
use App\Entities\DocumentType;
|
||||
|
||||
/**
|
||||
* Class DocumentTypeRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class DocumentTypeRepositoryEloquent extends BaseRepository implements DocumentTypeRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
|
||||
'documents.id' => '=',
|
||||
'documents.symbol' => 'like',
|
||||
'documents.abstract' => 'like',
|
||||
'documents.book_id' => '=',
|
||||
'documents.type_id' => '=',
|
||||
'documents.signer_id' => '=',
|
||||
'documents.creator_id' => '=',
|
||||
'documents.writer_id' => '=',
|
||||
'documents.effective_at' => 'like',
|
||||
'documents.sign_at' => 'like',
|
||||
'documents.publisher_id' => 'like',
|
||||
'documents.link_id' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return DocumentType::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
69
app/Repositories/Eloquents/OrganizeRepositoryEloquent.php
Normal file
69
app/Repositories/Eloquents/OrganizeRepositoryEloquent.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\OrganizeRepository;
|
||||
use App\Entities\Organize;
|
||||
|
||||
/**
|
||||
* Class OrganizeRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class OrganizeRepositoryEloquent extends BaseRepository implements OrganizeRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
|
||||
'publishedDocuments.id' => '=',
|
||||
'publishedDocuments.symbol' => 'like',
|
||||
'publishedDocuments.abstract' => 'like',
|
||||
'publishedDocuments.book_id' => '=',
|
||||
'publishedDocuments.type_id' => '=',
|
||||
'publishedDocuments.signer_id' => '=',
|
||||
'publishedDocuments.creator_id' => '=',
|
||||
'publishedDocuments.writer_id' => '=',
|
||||
'publishedDocuments.effective_at' => 'like',
|
||||
'publishedDocuments.sign_at' => 'like',
|
||||
'publishedDocuments.publisher_id' => 'like',
|
||||
'publishedDocuments.link_id' => '=',
|
||||
|
||||
'receivedDocuments.id' => '=',
|
||||
'receivedDocuments.symbol' => 'like',
|
||||
'receivedDocuments.abstract' => 'like',
|
||||
'receivedDocuments.book_id' => '=',
|
||||
'receivedDocuments.type_id' => '=',
|
||||
'receivedDocuments.signer_id' => '=',
|
||||
'receivedDocuments.creator_id' => '=',
|
||||
'receivedDocuments.writer_id' => '=',
|
||||
'receivedDocuments.effective_at' => 'like',
|
||||
'receivedDocuments.sign_at' => 'like',
|
||||
'receivedDocuments.publisher_id' => 'like',
|
||||
'receivedDocuments.link_id' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Organize::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
55
app/Repositories/Eloquents/PermissionRepositoryEloquent.php
Normal file
55
app/Repositories/Eloquents/PermissionRepositoryEloquent.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\PermissionRepository;
|
||||
use Spatie\Permission\Models\Permission;
|
||||
|
||||
/**
|
||||
* Class PermissionRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class PermissionRepositoryEloquent extends BaseRepository implements PermissionRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
|
||||
'roles.id' => '=',
|
||||
'roles.name' => 'like',
|
||||
|
||||
'users.id' => '=',
|
||||
'users.name' => 'like',
|
||||
'users.email' => '=',
|
||||
'users.tel' => '=',
|
||||
'users.birthday' => '=',
|
||||
'users.department_id' => '=',
|
||||
'users.title_id' => '=',
|
||||
'users.active' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Permission::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
55
app/Repositories/Eloquents/RoleRepositoryEloquent.php
Normal file
55
app/Repositories/Eloquents/RoleRepositoryEloquent.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\RoleRepository;
|
||||
use Spatie\Permission\Models\Role;
|
||||
|
||||
/**
|
||||
* Class RoleRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class RoleRepositoryEloquent extends BaseRepository implements RoleRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
|
||||
'permissions.id' => '=',
|
||||
'permissions.name' => 'like',
|
||||
|
||||
'users.id' => '=',
|
||||
'users.name' => 'like',
|
||||
'users.email' => '=',
|
||||
'users.tel' => '=',
|
||||
'users.birthday' => '=',
|
||||
'users.department_id' => '=',
|
||||
'users.title_id' => '=',
|
||||
'users.active' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Role::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
57
app/Repositories/Eloquents/SignerRepositoryEloquent.php
Normal file
57
app/Repositories/Eloquents/SignerRepositoryEloquent.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\SignerRepository;
|
||||
use App\Entities\Signer;
|
||||
|
||||
/**
|
||||
* Class SignerRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class SignerRepositoryEloquent extends BaseRepository implements SignerRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
'description' => 'like',
|
||||
|
||||
'documents.id' => '=',
|
||||
'documents.symbol' => 'like',
|
||||
'documents.abstract' => 'like',
|
||||
'documents.book_id' => '=',
|
||||
'documents.type_id' => '=',
|
||||
'documents.signer_id' => '=',
|
||||
'documents.creator_id' => '=',
|
||||
'documents.writer_id' => '=',
|
||||
'documents.effective_at' => 'like',
|
||||
'documents.sign_at' => 'like',
|
||||
'documents.publisher_id' => 'like',
|
||||
'documents.link_id' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Signer::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
52
app/Repositories/Eloquents/TitleRepositoryEloquent.php
Normal file
52
app/Repositories/Eloquents/TitleRepositoryEloquent.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\TitleRepository;
|
||||
use App\Entities\Title;
|
||||
|
||||
/**
|
||||
* Class TitleRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class TitleRepositoryEloquent extends BaseRepository implements TitleRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
|
||||
'users.id' => '=',
|
||||
'users.name' => 'like',
|
||||
'users.email' => '=',
|
||||
'users.tel' => '=',
|
||||
'users.birthday' => '=',
|
||||
'users.department_id' => '=',
|
||||
'users.title_id' => '=',
|
||||
'users.active' => '=',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return Title::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
61
app/Repositories/Eloquents/UserRepositoryEloquent.php
Normal file
61
app/Repositories/Eloquents/UserRepositoryEloquent.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Eloquents;
|
||||
|
||||
use Prettus\Repository\Eloquent\BaseRepository;
|
||||
use Prettus\Repository\Criteria\RequestCriteria;
|
||||
use App\Contracts\Repositories\UserRepository;
|
||||
use App\Entities\User;
|
||||
|
||||
/**
|
||||
* Class UserRepositoryEloquent.
|
||||
*
|
||||
* @package namespace App\Repositories\Eloquents;
|
||||
*/
|
||||
class UserRepositoryEloquent extends BaseRepository implements UserRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fieldSearchable = [
|
||||
'id' => '=',
|
||||
'name' => 'like',
|
||||
'email' => '=',
|
||||
'tel' => '=',
|
||||
'birthday' => '=',
|
||||
'department_id' => '=',
|
||||
'title_id' => '=',
|
||||
'active' => '=',
|
||||
'created_at' => 'like',
|
||||
'updated_at' => 'like',
|
||||
|
||||
'roles.id' => '=',
|
||||
'roles.name' => 'like',
|
||||
|
||||
'department.id' => '=',
|
||||
'department.name' => 'like',
|
||||
'department.tel' => '=',
|
||||
|
||||
'title.id' => '=',
|
||||
'title.name' => 'like',
|
||||
];
|
||||
|
||||
/**
|
||||
* Specify Model class name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function model()
|
||||
{
|
||||
return User::class;
|
||||
}
|
||||
|
||||
/**
|
||||
* Boot up the repository, pushing criteria
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->pushCriteria(app(RequestCriteria::class));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user