I am new to laravel when i download laravel and run the command php artisan serve it gives me project link http://127.0.0.1:8000/. For the first time i can access the link perfectly as long as i want but when i restart my machine and access my project with the same link it says This site can’t be reached I tried many times by installing new projects but same issue. Anyone please help
You have to run this command "php artisan serve" every time when you wanna start developing.
Related
Vite didnt load asset properly on my laravel 9 project. i've been facing this problem when using laravel 9 with Vite. first when i install laravel breeze i though the breeze is the problem, but now i try using jetstream it has the same issue. please see the screenshot below. can someone help me ?
I think you need to run the Vite server using npm run dev. That will also take care of hot reloading
I run "npm run dev" command by mistake. And website is started using dev url. I searched for a solution but never found. I found solution myself. You need to delete "hot" file in your public folder on your hosting.
In you hosting go to "public" path and delete named "hot" file.
I have a website that uses vuejs as frontend and Laravel API in backend. Recently I updated my Laravel site it was working absolutely fine in my localhost. But the problem is when I upload my Laravel files to my hostinger.com hosting account it's not updating. It's displaying me old site but my database got updated and I was able to errors of the new site.
I tried these none of them seems to be working,
Cleared browser history and cache
Tried reuploading site again
I ran following commands
php artisan config:cache
php artisan route:cache
php artisan view:cache
npm run prod
Tried to use cmd command ipconfig/flushdns
Still, I was not able to solve the issue.
Have you tried refreshing your website with CTRL+F5 or CTRL+R ?
I'm new to Laravel. I'm developing an app in Laravel6 using VSCode on Windows 10.
When I started my app, I executed this command:
php artisan ui bootstrap --auth
Then I proceeded to develop my views using bootstrap4. If I executed this command now, after having created various views that used bootstrap, what would happen?
php artisan ui vue --auth
I'm hoping to hear that absolutely nothing will happen to my existing views and the necessary vue modules have simply been installed so that I could proceed to write new views that use vue instead of bootstrap.
But rather than trying it and potentially erasing my bootstrap code (or making it unrunnable because the bootstrap packages have been deleted), I thought I'd ask here. I'm guessing someone here is aware of what will happen if I run php artisan vue a second time for the same project but with a different parameter.
Yes i have tried with commands given by you if i run "php artisan ui vue" it will only replace those files which has been generated by command and if run "php artisan ui vue --auth" it will ask me whether or not i want to replace those files means "yes/no" in a terminal.
I have a issue in my laravel applications, i'm using XAMPP test run my applications locally on windows machine.
My problem is that Laravel applications get's logout suddendly, this happens very often, if i refresh the same page like 4 , 5 times it get's logged off. but when i check the chrome dev tools Cookies, Laravel_session is still there.
Any idea as to why this could happen?, also, i don't get the same issue when it's hosted online.
May be the problem is with session driver. Because as you said that if i refresh the same page like 4 , 5 times it get's logged off, by default session storage is file and you 4-5 time request may messing it up. Here I'm not sure but this stuff may solve your issue.
Change SESSION_DRIVER=file to SESSION_DRIVER=database in .env
Create session migration with php artisan session:table artisan
code
Run composer dump-autoload to regenerates the list of all
classes
Run php artisan migrate to migrate.
NOTE: You can run single migration file by separate with subfolder
So, I have placed the reCaptcha in my login form. I click on "im not a robot" and click on the right images and it says it succeeded, but when I submit the form it returns me the message of "The Captcha field is not correct." and it also thrown and exception saying:
'Illuminate\Foundation\Validation\ValidationException' with message
'The given data failed to pass validation.'
I am using "greggilbert/recaptcha" in my Laravel 5.2 project. I have set my keys and everything is working great in production and in other localhost's but not in mine.
My team and I work in the same git repository and it works for everyone but not for me.
I have re-installed the plugin, also the whole composer (by deleting vendor and then composer install).
I have cleared the configuration with php artisan config:clear and I've done the composer dump-autoload and have re-publish the ServiceProvider with php artisan vendor:publish --provider="Greggilbert\Recaptcha\RecaptchaServiceProvider"
Does somebody have any idea on how to fix this? Please!
Thank you a lot for reading this! Happy coding!