app/Http/Controllers/HomeController.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)
    {
        Home::create([
            "name" => $request->input('name'),
            "email" => $request->input('email'),
            "city" => $request->input('city'),
            "password" => Crypt::encrypt($request->input('password'))
        ]);
        return redirect('home');
    }
public function store ( Request $ request ) { Home :: create ( [ " name " => $ request -> input ( 'name' ) , " email " => $ request -> input ( 'email' ) , " city " => $ request -> input ( 'city' ) , " password " => Crypt :: encrypt ( $ request -> input ( 'password' ) ) ] ) ; return redirect ( 'home' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//