How can i make a curl request in laravel without leaving my current page

I am in a Laravel view with an input field and a button, so I want to make a request to an external API. <input type=”text” class=”form-control” name=”licence” id=”licence” /> <button type=”submit” class=”btn btn-primary”>Validate BVN</button> The CURL request just URL and the licence input field will be submitted. curl “url” \ -X GET The curl…

Route not found laravel

I’m getting an error 404|Not found , while the route is existing and the debugger is on I have cleared route cachebut still showing the error, when I php artisan route:list it shows POST | products/{product}/favourites | product.fav.store | App\Http\Controllers\HomeController@store How can I solve this? controller public function store(Request $request, Product $product) { $request->user()->favouriteProducts()->syncWithoutDetaching([$product->id]); return…

How to fix “Uncaught ReflectionException: Class view does not exist” in Laravel after deployment to Ubuntu 18.04 server

I am currently hosting an application on a ubuntu 16.04 server… but when i try to deploy the same code on fresh ubuntu 18.04 server i get the following error on my apache logs PHP Fatal error: Uncaught ReflectionException: Class view does not exist in /var/www/xxxxxxxxxxxx/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:788 navigating to that line of code on my laravel…