public function index(Request $request) { // sleep(3); return parent::index($request); }
public function index(Request $request) { $query = $this->resources->with('cover')->with('stock')->with('categories'); return parent::index($request, $query); }
public function index(Request $request) { $query = $this->resources->with('roles'); return parent::index($request, $query); }
public function index(Request $request) { $query = $this->resources->with('logistics', 'payment')->where('user_id', '=', $request->user->id); return parent::index($request, $query); }
public function __construct() { $this->middleware('oauth', ['only' => 'purchase']); $this->middleware('noguest', ['only' => 'purchase']); parent::__construct(); }