Skip to content

Conversation

vahidalvandi
Copy link

Fix incorrect view reference in error pages (Laravel 12)

Problem

In Laravel 12, the default published error views contain an invalid namespace reference:

@extends('errors::minimal')

This causes the following exception when rendering error views (e.g., 500.blade.php):

InvalidArgumentException
No hint path defined for [errors].

Cause

In Laravel 12, the error view namespace errors:: is no longer registered automatically. Therefore, using @extends('errors::minimal') results in an undefined hint path.

Solution

The fix is to change the view inheritance to a relative reference:

@extends('errors.minimal')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants