🔺 Laravel errors

Laravel framework errors — routing, Eloquent, validation, configuration and deployment — with artisan fixes.

CodeErrorWhat it means
MassAssignmentException Laravel: Illuminate\Database\Eloquent\MassAssignmentException: Add [x] to fillable property to allow mass assignment You passed an array to create()/update()/fill() containing a field that isn’t in the model’s $fillable list.
Route [login] not defined Laravel: Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined Code called route('name') for a route name that doesn’t exist — very often route('login') from the auth middl…
The GET method is not supported for route Laravel: The GET method is not supported for route x. Supported methods: POST (MethodNotAllowedHttpException) The URL exists, but not for the HTTP method used — e.g. opening a POST-only route in the browser, or a form s…