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(Request $request)
    {
        $data = $request->all();
        $data['password'] = bcrypt($data['password']);
        \App\User::create($data);
        return redirect()->route('user.index');
    }
public function store ( Request $ request ) { $ data = $ request -> all ( ) ; $ data [ 'password' ] = bcrypt ( $ data [ 'password' ] ) ; \ App \ User :: create ( $ data ) ; return redirect ( ) -> route ( 'user.index' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .