app/Http/Controllers/admincontroller.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 addad(Request $request)
    {
        $getname=request('name');
        $getemail=request('email');
        $getpass=request('password');
        $u=new userlog();
        $u->name=$getname;
        $u->mailid=$getemail;
        $u->password=$getpass;
        $u->usertype="admin";
        $u->save();
        return redirect("/");
    }
public function addad ( Request $ request ) { $ getname = request ( 'name' ) ; $ getemail = request ( 'email' ) ; $ getpass = request ( 'password' ) ; $ u = new userlog ( ) ; $ u -> name = $ getname ; $ u -> mailid = $ getemail ; $ u -> password = $ getpass ; $ u -> usertype = " admin " ; $ u -> save ( ) ; return redirect ( " / " ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//echo "success";