generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2a8922
commit 27443ef
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
use function Spatie\Snapshots\assertMatchesFileSnapshot; | ||
|
||
it('still is the same laravel navigation blade component', function () { | ||
assertMatchesFileSnapshot(__DIR__.'/../vendor/laravel/framework/src/Illuminate/Foundation/resources/exceptions/renderer/components/header.blade.php'); | ||
})->skipOnWindows(); |
26 changes: 26 additions & 0 deletions
26
...LaravelComponentCheckTest__it_still_is_the_same_laravel_navigation_blade_component__1.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<x-laravel-exceptions-renderer::card> | ||
<div class="md:flex md:items-center md:justify-between md:gap-2"> | ||
<div> | ||
<div class="inline-block rounded-full bg-red-500/20 px-3 py-2 dark:bg-red-500/20"> | ||
<span class="hidden text-sm font-bold leading-5 text-red-500 md:inline-block lg:text-base"> | ||
{{ $exception->class() }} | ||
</span> | ||
<span class="text-sm font-bold leading-5 text-red-500 md:hidden lg:text-base"> | ||
{{ implode(' ', array_slice(explode('\\', $exception->class()), -1)) }} | ||
</span> | ||
</div> | ||
<div class="mt-4 text-lg font-semibold text-gray-900 dark:text-white lg:text-2xl">{{ $exception->message() }}</div> | ||
</div> | ||
<div class="hidden text-right md:block md:min-w-64"> | ||
<div> | ||
<span class="rounded-full bg-gray-200 px-3 py-2 text-sm leading-5 text-gray-900 dark:bg-gray-800 dark:text-white"> | ||
{{ $exception->request()->method() }} {{ $exception->request()->httpHost() }} | ||
</span> | ||
</div> | ||
<div class="mt-4 px-4"> | ||
<span class="text-sm text-gray-500 dark:text-gray-400">PHP {{ PHP_VERSION }} — Laravel {{ app()->version() }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</x-laravel-exceptions-renderer::card> |