/** * Store a newly created resource in storage. * * @return Response */ public function store(StoreRequest $request) { $data = $request->all(); $data['visible'] = true; Venue::create($data)->tags()->attach($request->tags); return redirect('venues/admin')->with('message', 'Venue created!'); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(StoreRequest $request) { Permission::create($request->all()); return redirect('permissions/admin')->with('message', 'Permission created!'); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(StoreRequest $request) { Tag::create($request->all()); return redirect('tags/admin')->with('message', 'Tag created!'); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(StoreRequest $request) { User::create($request->all()); return redirect('users/admin')->with('message', 'User created!'); }