You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
417 B
21 lines
417 B
<?php
|
|
|
|
namespace App\Entities;
|
|
|
|
use App\Entities\Users\User;
|
|
|
|
/**
|
|
* Base Repository Class
|
|
*/
|
|
abstract class BaseRepository extends EloquentRepository {
|
|
|
|
public function getCustomersList()
|
|
{
|
|
return User::orderBy('name')->hasRoles(['customer'])->lists('name','id');
|
|
}
|
|
|
|
public function getWorkersList()
|
|
{
|
|
return User::orderBy('name')->hasRoles(['worker'])->lists('name','id');
|
|
}
|
|
}
|