Category : localhost

Laravel Version: 8.35.1 PHP Version: 8.0.0 Description: I’m uploading an image with laravel using this code: $product_image = $request->file(‘product_image’); $product_image_extension = $product_image->extension(); $product_image_name = time() . ‘.’ . $product_image_extension; $product_image->storeAs(‘/media/product_images’, $product_image_name); $model->product_image = $product_image_name; It works fine, the file is uploaded to storage/app/media/product_images/. Then, I run the command php artisan storage: link to create the ..

Read more

I design my page in localhost which works fine and I include all my paths like that <link href="{{ asset(‘public/’.Config::get(‘config.template_assets’).’assets/vendor/bootstrap/css/bootstrap.min.css’)}}" rel="stylesheet"> but when I run my php artisan serve bootstrap is not including with 404 error ,which mean my server can’t found the location of bootstrap, so how should I change my path so that ..

Read more

I am using virtual hosts for my laravel web development but now I wanted to "refresh" my knowledge of PHP. But I have an issue when I type localhost I get one of my virtual hosts and then I cant for example type localhost/php-projects/index.php because there is no such link as php-projects in my virtual ..

Read more

I’m a fresher in Cpanel laravel hosting. I’m facing a specific problem SQLSTATE[HY000] [1045] Access denied for user ‘mbaam_trodian’@’localhost’ (using password: YES) (SQL: select * from users where email = [email protected] limit 1) and can’t found any solution for 3 days. Localhost settings: localhost settings database user: database user settings .env file: DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 ..

Read more

cURL error 7: Failed to connect to localhost port 1080: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) Every time I am trying to call data from API it shows me this error unable to find a way to fix it My App is connected to MySQL DB and API is connected to MS SQL DB ………. Any Help ..

Read more

I upload my laravel project from localhost to server but to access the app my url is http://myhostexample.com/public/ I want it to be http://myhostexample.com I have modified the public/.htaccess and here it is : <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] ..

Read more

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