/** * Display a listing of the resource. * * @return Response */ public function index() { $this->data['Prototypes'] = Prototype::all(); return view('admin.prototypes.list', $this->data); }
/** * Show the form for creating a new resource. * * @return Response */ public function create(Requests\Admin\Assigners\CreateFromUsers $request) { $this->data['Users'] = User::whereIn('id', $request->input('ids'))->get(); $this->data['Prototypes'] = Prototype::all(); return view('admin.assigners.create', $this->data); }