app/Http/Controllers/UserController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(StoreUserRequest $request)
    {
        $inputs = $request->except('password_confirmation', 'submit');
        $inputs['password'] = md5($request->password);
        User::create($inputs);
        return $this->redirect();
    }
public function store ( StoreUserRequest $ request ) { $ inputs = $ request -> except ( 'password_confirmation' , 'submit' ) ; $ inputs [ 'password' ] = md5 ( $ request -> password ) ; User :: create ( $ inputs ) ; return $ this -> redirect ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// $inputs['avatar'] = File::store('users', 'avatar');