app/Http/Controllers/UsersController.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)
    {
        User::create($request->all());
        return view('/admin/home')->with('success', 'Created successfully.');
    }
public function store ( Request $ request ) { User :: create ( $ request -> all ( ) ) ; return view ( '/admin/home' ) -> with ( 'success' , 'Created successfully.' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .