laravel request session from other project - laravel

Hello I have a problem.
Laravel Installer 4.2.8
terminal original cmd of window
windows 10
the project its work fine yesterday.
but today it request session from other path than the project is runing.
i search for the other path in all the project but not find anythick
I get this error

OK I use php artisan config:clear and its work

Related

Suddenly getting "Target class [Inertia\Ssr\Gateway] does not exist." I don't use Inertia's SSR. How can I get back to a functioning site?

I've got a Laravel Jetstream project using Inertia. I've been running it for a while. Launched on Jetstream v1, later upgraded to v2. Everything has been running great. Today I was messing with some composer and npm stuff and suddenly every page is broken. I just get an error that looks like this:
Illuminate\Contracts\Container\BindingResolutionException
Target class [Inertia\Ssr\Gateway] does not exist.
This happens on every view. I have never used Inertia's SSR, and I don't want to (at least not currently). I tried resetting both my composer json files and my npm json files but I cannot get back to my functioning site. I'm losing my mind. Any ideas of how I can get back to my original functioning site?
Try to remove vendor folder and node_modules.
Then run
composer install
and :
npm install
After that try to run these commands:
php artisan cache:clear
php artisan view:clear
php artisan route:clear
composer dump-autoload

How to RUN LARAVEL after closing all connections

I have shut down my laptop and now how to continue on same project which I had proceeding at beginning,
I started XAMPP but still URL shows NOT FOUND for my directory .
i run it using :php artisan serve
Then URL:http://127.0.0.1:8000
it shows not found page
As laravel and php development environments, I highly recommend these to you.
Windows : https://laragon.org/
Mac OS :https://laravel.com/docs/8.x/valet
At first, open your cmd
Now get into the folder where you started your laravel project
Once you are in the laravel project through CMD run the command "php artisan serve"
Now you may check the URL once again.
I also faced the same issue hence tried to answer.
Thank you.

I*m new to Laravel and I keep getting this error and not sure how to solve it

I'm new to Laravel today and tried using
php artisan make:auth
to create a login.
It says it was successful and the login page was there, but when I clicked the link or typed in the registration link, I got the error in the image below:
If you are using XAMPP, make sure to place the project folder in htdocs.
composer works with php.exe selection.
Use artisan command : composer dump-autoload

Run laravel project files on wamp server without laravel and composer install

I'm currently new in laravel, I have laravel project files and I paste it to my www folder. I would like to ask if it is possible or is there any way to run a laravel project without installing composer and laravel in my localhost wamp server?
To run laravel project on windows without composer just follow the instruction :
Goto your project folder
Press Shift + Right Button
Select "open command window here" menu
It will open a command line then write "php artisan serve" command
It will active internal server in laravel and you will get an url looks like http://localhost:8000
So in the address bar of web browser put http://localhost:8000 and hit enter. Hope you will access your project.
But for the development purpose you have to install composer.
hope it will helpful. Let me know if you get any problem.

Artisan returns blank

Whenever I run any php artisan command like php artisan list, I get nothing back. No commands work at all.
I have been searching a little around, and have tried the following:
changing permissions for /root/.composer to 777
remove bootstrap/compiled.php file
There is nothing in app/storage/logs/log-cli-.txt.
I can view the site in the browser.
I'm running on CentOS 6.3 64bit with PHP v. 5.5.11 - Laravel 4.1
This problem is pretty common and is usually related to some errors that are not seen in the CLI like custom classes that failed to load, are you sure you have error reporting on?
Edit the file artisan and add the following lines just after the PHP opening tag <?php:
ini_set('display_errors',1);
error_reporting(-1);
Try running artisan again and see if there is any output.
If that doesn't work try reverting app/start/global.php to it's default state.
Running composer install solved the problem.
The solution for me was like #TheodoreR.Smith mentioned, there was an exit in a controller's __construct(). I removed it and route:list worked fine.
Came here after a cronjob wouldn't execute because of artisan containing an error in the CLI, thanks to this answer. So dropping my answer in case it could help someone.
The solution is switching to PHP 7.1+ (7.2 in my case) due to Laravel requirements.
Switching to 7.2 for me, wasn't enough. Both Apache and CLI were switched to 7.2 but the cronjob uses the default PHP version of the server (cPanel managed). Specifically executing the 7.2 version (in stead of global PHP) solved it for me, the cronjob command is:
* * * * * /usr/local/bin/ea-php72 /path/to/laravel/artisan schedule:run >/dev/null 2>&1
(remove > /dev/null 2>&1 if you want to see the output and bugfix the commands)
Make sure you don't have any exit() or die() in your route file.
That was the issue in my case as I was in the middle of testing some code in the route file when I realized that I couldn't run any artisan command.

Resources