$LOWER_NAME$Repo = $$LOWER_NAME$Repo; } /** * Display a listing of the resource. * @return Response */ public function index() { return view('list_wrapper', [ 'entityType' => '$LOWER_NAME$', 'datatable' => new $STUDLY_NAME$Datatable(), 'title' => trans('texts.$LOWER_NAME$'), ]); } public function getDatatable(DatatableService $datatableService) { $search = request()->input('test'); $userId = Auth::user()->filterId(); $datatable = new $STUDLY_NAME$Datatable(); $query = $this->$LOWER_NAME$Repo->find($search, $userId); return $datatableService->createDatatable($datatable, $query); } /** * Show the form for creating a new resource. * @return Response */ public function create() { return view('$LOWER_NAME$::create'); } /** * Store a newly created resource in storage. * @param Request $request * @return Response */ public function store(Request $request) { } /** * Show the form for editing the specified resource. * @return Response */ public function edit() { return view('$LOWER_NAME$::edit'); } /** * Update the specified resource in storage. * @param Request $request * @return Response */ public function update(Request $request) { } /** * Remove the specified resource from storage. * @return Response */ public function destroy() { } }