, Laravel 5.7.
/storage/logs/laravel-yyyy-mm-dd.log, . , StoreLocation :
:
[2018-12-13 09:48:09] local.ERROR: Class App\Requests\StoreLocation does not exist
Obviously, I started writing code without having coffee in the first place!
Decision:
use App\Http\Requests\StoreLocation;
I added the correct path to the StoreLocation.php class. After the correction, everything returned to normal and began to send an answer 422.
PS1: to get the logs, make sure that debugging mode is turned on: add APP_DEBUG = true to the .env file
PS2: the log file stores the latest entries at the bottom
source
share