public function store(CreateTypeRequest $request, Type $type)
 {
     $type->create($request->all());
     return redirect()->route('types.index');
 }
示例#2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param Requests\CreateTypeRequest $request
  *
  * @return \Illuminate\Http\Response
  */
 public function store(Requests\CreateTypeRequest $request)
 {
     Types::create($request->all());
     return redirect()->route('admin.types')->with('Success', 'Bedrijfs type is aangemaakt');
 }