laravel print exception message 1

laravel print exception message

@if(count($errors) > 0 )

@endif

Here is what the above code is Doing:
1. First, we check if there are any errors in the session.
2. If there are, we loop through them and display them in an unordered list.
3. We also add a close button to the alert.

Now, let’s add the alert to the layout file.

resources/views/layouts/app.blade.php



{{ config(‘app.name’, ‘Laravel’) }}


Similar Posts