app/Http/Controllers/UserController.php
/**
     * Store a newly created User in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created User in storage.
Store a newly created User in storage .
public function store(UserRequest $request)
    {
        User::create($request->all() + ['ts_register' => Carbon::now()->timestamp]);
        return redirect()->route('user.index')->with('store', 'New user created');
    }
public function store ( UserRequest $ request ) { User :: create ( $ request -> all ( ) + [ 'ts_register' => Carbon :: now ( ) -> timestamp ] ) ; return redirect ( ) -> route ( 'user.index' ) -> with ( 'store' , 'New user created' ) ; }
Store a newly created User in storage.
Store a newly created User in storage .