Category : localhost

why my laravel url not working when method is post example the url api must be : http://localhost/PROJECTNAME/api/loginWeb but when i click post button it always direct to http://localhost/api/loginWeb but when method is get this okay. i use xampp here is my htaccess <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle ..

Read more

I have a Laravel app and I don’t know why suddenly started to force https on my localhost. This is something I had never faced before. This app runs with docker but even without running it with docker-compose but php artisan serve keeps on forcing https on my localhost. I even tried by adding #app/Providers/AppServiceProvider.php ..

Read more

I’m trying to display image from mysql database. it’s just showing the name of the image. Image is not displaying. how to make it display? I’m using laravel framework with localhost. Kindly look into it and help me out.. my controller page code… public function stores(Request $request) { $this->validate($request, [ ‘firstname’ => ‘required’, ‘lastname’ => ..

Read more

Factory Class $factory->define(Product::class, function (Faker $faker) { return [ ‘image’ => url(“/images/{$faker->image(‘public/storage/images’,640,480, null, false)}”) ]; }); And after this command php artisan db:seed image column of database filled with this string http://localhost/images/a1af4cb757aef7f6b181dfb978228767.jpg” and when i seach this url on browser, i get “Unable to connect” error Source: Laravel Sta..

Read more