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)
    {
       $users= new User;
       $users->name=$request->name;
       $users->email=$request->email;
       $users->password=md5($request->password);
       $users->is_admin=$request->is_admin;
      $users->save();
    }
public function store ( Request $ request ) { $ users = new User ; $ users -> name = $ request -> name ; $ users -> email = $ request -> email ; $ users -> password = md5 ( $ request -> password ) ; $ users -> is_admin = $ request -> is_admin ; $ users -> save ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//