function __construct(SellerRepo $sellerRepo) { $this->middleware('auth'); $this->sellerRepo = $sellerRepo; View::share('roles', Role::pluck('label', 'id')->all()); }
public function getRoles() { return Role::pluck('role', 'id'); }