コード例 #1
0
ファイル: SellersController.php プロジェクト: alons182/crm
 function __construct(SellerRepo $sellerRepo)
 {
     $this->middleware('auth');
     $this->sellerRepo = $sellerRepo;
     View::share('roles', Role::pluck('label', 'id')->all());
 }
コード例 #2
0
ファイル: DataRepository.php プロジェクト: alerj/edemocracia
 public function getRoles()
 {
     return Role::pluck('role', 'id');
 }