コード例 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(CreateUserRequest $request)
 {
     $result = $this->user->storeUser($request);
     if (!$result) {
         return redirect()->back()->with('status', 'create-error');
     }
     return redirect()->route('admin.user.index')->with('status', 'create-success');
 }