feat: debug errors on filament
Laravel CI-CD (Gitea) / Tests Unitaires (push) Successful in 16s Details
Laravel CI-CD (Gitea) / Build & Push Docker (push) Successful in 29s Details
Laravel CI-CD (Gitea) / Déploiement Simplifié (push) Successful in 1s Details

This commit is contained in:
Leon 2026-03-18 15:21:34 +01:00
parent e8d3edc1ad
commit 5a770089b8
9 changed files with 2718 additions and 9 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers\Filament;
use BezhanSalleh\FilamentExceptions\FilamentExceptionsPlugin;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\AuthenticateSession;
use Filament\Http\Middleware\DisableBladeIconComponents;
@ -29,6 +30,7 @@ class DashboardPanelProvider extends PanelProvider
->default()
->id('dashboard')
->path('dashboard')
->viteTheme('resources/css/filament/dashboard/theme.css')
->login()
->colors([
'primary' => Color::Amber,
@ -39,13 +41,12 @@ class DashboardPanelProvider extends PanelProvider
->icon('heroicon-o-queue-list')
->group('Settings')
->sort(3),
])
->navigationItems([
NavigationItem::make('Meilisearch')
->url("https://meili.leonmorival.com", shouldOpenInNewTab: true)
->icon('heroicon-o-magnifying-glass')
->icon('heroicon-o-magnifying-glass') // Changé ici
->group('Settings')
->sort(4),
->sort(4), // Changé ici pour qu'il soit après Horizon
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages')
@ -73,6 +74,7 @@ class DashboardPanelProvider extends PanelProvider
])
->plugins([
FilamentSpatieLaravelHealthPlugin::make(),
FilamentExceptionsPlugin::make(),
]);
}
}

View File

@ -7,6 +7,7 @@
"license": "MIT",
"require": {
"php": "^8.2",
"bezhansalleh/filament-exceptions": "^4.1",
"dedoc/scramble": "^0.13.14",
"filament/filament": "^5.0",
"filament/widgets": "^5.3",

167
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "8c9c72cb13393a33fd51a4f3ee47635b",
"content-hash": "4ca7ef03412572566d333831942fdf65",
"packages": [
{
"name": "anourvalar/eloquent-serialize",
@ -72,6 +72,171 @@
},
"time": "2025-12-04T13:38:21+00:00"
},
{
"name": "bezhansalleh/filament-exceptions",
"version": "4.1.0",
"source": {
"type": "git",
"url": "https://github.com/bezhanSalleh/filament-exceptions.git",
"reference": "849bad3f831f15f51c01f693175cf97223b6d943"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bezhanSalleh/filament-exceptions/zipball/849bad3f831f15f51c01f693175cf97223b6d943",
"reference": "849bad3f831f15f51c01f693175cf97223b6d943",
"shasum": ""
},
"require": {
"bezhansalleh/filament-plugin-essentials": "^1.0",
"filament/filament": "^4.0|^5.0",
"illuminate/contracts": "^11.28|^12.0",
"illuminate/support": "^11.28|^12.0",
"php": "^8.2",
"spatie/laravel-package-tools": "^1.9"
},
"require-dev": {
"larastan/larastan": "^3.8",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.0|^8.0",
"orchestra/testbench": "^10.6",
"pestphp/pest": "^2.0|^3.0",
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
"pestphp/pest-plugin-livewire": "^3.0",
"pestphp/pest-plugin-type-coverage": "^3.5",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^10.1|^11.0",
"rector/rector": "^2.1",
"spatie/laravel-ray": "^1.40"
},
"type": "library",
"extra": {
"laravel": {
"aliases": {
"FilamentExceptions": "BezhanSalleh\\FilamentExceptions\\Facades\\FilamentExceptions"
},
"providers": [
"BezhanSalleh\\FilamentExceptions\\FilamentExceptionsServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"BezhanSalleh\\FilamentExceptions\\": "src",
"BezhanSalleh\\FilamentExceptions\\Database\\Factories\\": "database/factories"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bezhan Salleh",
"email": "bezhan_salleh@yahoo.com",
"role": "Developer"
}
],
"description": "A Simple & Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel",
"homepage": "https://github.com/bezhansalleh/filament-exceptions",
"keywords": [
"bezhanSalleh",
"filament-exception-viewer",
"filament-exceptions",
"laravel"
],
"support": {
"issues": "https://github.com/bezhanSalleh/filament-exceptions/issues",
"source": "https://github.com/bezhanSalleh/filament-exceptions/tree/4.1.0"
},
"funding": [
{
"url": "https://github.com/bezhanSalleh",
"type": "github"
}
],
"time": "2026-01-19T19:38:04+00:00"
},
{
"name": "bezhansalleh/filament-plugin-essentials",
"version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/bezhanSalleh/filament-plugin-essentials.git",
"reference": "3bfdb276a8993ccd5acd9d6b43fd4763cf221d3a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bezhanSalleh/filament-plugin-essentials/zipball/3bfdb276a8993ccd5acd9d6b43fd4763cf221d3a",
"reference": "3bfdb276a8993ccd5acd9d6b43fd4763cf221d3a",
"shasum": ""
},
"require": {
"filament/filament": "^4.0|^5.0",
"illuminate/contracts": "^11.28|^12.0",
"php": "^8.2",
"spatie/laravel-package-tools": "^1.9"
},
"require-dev": {
"larastan/larastan": "^2.9||^3.0",
"laravel/pint": "^1.14",
"nunomaduro/collision": "^8.1.1||^7.10.0",
"orchestra/testbench": "^10.0.0||^9.0.0",
"pestphp/pest": "^3.0",
"pestphp/pest-plugin-arch": "^3.0",
"pestphp/pest-plugin-laravel": "^3.0",
"pestphp/pest-plugin-type-coverage": "^3.5",
"phpstan/extension-installer": "^1.3||^2.0",
"phpstan/phpstan-deprecation-rules": "^1.1||^2.0",
"phpstan/phpstan-phpunit": "^1.3||^2.0",
"rector/rector": "^2.1",
"spatie/laravel-ray": "^1.40"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"BezhanSalleh\\PluginEssentials\\PluginEssentialsServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"BezhanSalleh\\PluginEssentials\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bezhan Salleh",
"email": "bezhan_salleh@yahoo.com",
"role": "Developer"
}
],
"description": "A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster",
"homepage": "https://github.com/bezhansalleh/filament-plugin-essentials",
"keywords": [
"Bezhan Salleh",
"filament-plugin-essentials",
"laravel"
],
"support": {
"issues": "https://github.com/bezhanSalleh/filament-plugin-essentials/issues",
"source": "https://github.com/bezhanSalleh/filament-plugin-essentials/tree/1.1.0"
},
"funding": [
{
"url": "https://github.com/bezhanSalleh",
"type": "github"
}
],
"time": "2026-01-19T19:23:25+00:00"
},
{
"name": "blade-ui-kit/blade-heroicons",
"version": "2.6.0",

View File

@ -0,0 +1,52 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('filament_exceptions_table', function (Blueprint $table) {
$table->id();
// Exception details
$table->string('type', 255);
$table->string('code')->default('0');
$table->longText('message');
$table->string('file', 255);
$table->unsignedInteger('line');
$table->json('trace');
// Request details
$table->string('method', 10);
$table->string('path', 2048);
$table->string('ip', 45)->nullable();
// Request data (all nullable since not always present)
$table->json('headers')->nullable();
$table->json('cookies')->nullable();
$table->json('body')->nullable();
$table->json('query')->nullable();
// Route context (for Laravel's exception renderer components)
$table->json('route_context')->nullable();
$table->json('route_parameters')->nullable();
// Markdown for copy functionality
$table->longText('markdown')->nullable();
$table->timestamps();
// Index for common queries
$table->index('created_at');
$table->index('type');
});
}
public function down()
{
Schema::dropIfExists('filament_exceptions_table');
}
};

2484
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -7,11 +7,11 @@
"dev": "vite"
},
"devDependencies": {
"@tailwindcss/vite": "^4.0.0",
"@tailwindcss/vite": "^4.2.1",
"axios": "^1.11.0",
"concurrently": "^9.0.1",
"laravel-vite-plugin": "^2.0.0",
"tailwindcss": "^4.0.0",
"tailwindcss": "^4.2.1",
"vite": "^7.0.7"
}
}

View File

@ -0,0 +1,5 @@
@import '../../../../vendor/filament/filament/resources/css/theme.css';
@source '../../../../app/Filament/**/*';
@source '../../../../resources/views/filament/**/*';
@source '../../../../vendor/bezhansalleh/filament-exceptions/resources/views/**/*.blade.php';

View File

@ -5,7 +5,7 @@ import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
input: ['resources/css/app.css', 'resources/js/app.js', 'resources/css/filament/dashboard/theme.css'],
refresh: true,
}),
tailwindcss(),