app/Http/Controllers/Backend/BackendUserController.php
/**
     *  Store a newly User in storage.
     *
     * @param UserCreateRequest $request
     * @return \Illuminate\Http\RedirectResponse
     */
Store a newly User in storage.
Store a newly User in storage .
public function store(UserCreateRequest $request)
    {
        $input = $request->all();
        $input['password']=bcrypt($request->password);
        if (User::create($input)) {
            \Session::flash('flash_message_success', 'Success! Entry saved.');
        }else{
            \Session::flash('flash_message_error', 'Error! Entry Not saved.');
        }
       return redirect()->route('users.index');
    }
public function store ( UserCreateRequest $ request ) { $ input = $ request -> all ( ) ; $ input [ 'password' ] = bcrypt ( $ request -> password ) ; if ( User :: create ( $ input ) ) { \ Session :: flash ( 'flash_message_success' , 'Success! Entry saved.' ) ; } else { \ Session :: flash ( 'flash_message_error' , 'Error! Entry Not saved.' ) ; } return redirect ( ) -> route ( 'users.index' ) ; }
Store a newly User in storage.
Store a newly User in storage .
// Encrypt  password // Return to  user list page