Download the PHP package makararoth/filament-react-error-pages without Composer
On this page you can find all versions of the php package makararoth/filament-react-error-pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download makararoth/filament-react-error-pages
More information about makararoth/filament-react-error-pages
Files in makararoth/filament-react-error-pages
Package filament-react-error-pages
Short Description A Laravel package that provides React-based custom error pages with Filament support
License MIT
Informations about the package filament-react-error-pages
Filament React Error Pages
A Laravel package that provides React-based custom error pages with Filament admin panel integration.
Features
- Custom React-powered error pages for your Laravel application
- Seamless integration with Filament admin panel
- TypeScript support for better development experience
- Customizable styles and configurations
- Easy to extend with your own error components
Screenshots
Coming soon
Installation
Prerequisites
- PHP 8.1 or higher
- Laravel 10.0 or higher
- Filament 3.0 or higher (for Filament integration)
- Node.js and npm/yarn (for building React components)
Via Composer
Publish Assets and Config
Troubleshooting Installation
If you encounter an error during the artisan filament:upgrade
command after installation that indicates missing asset files, please ensure you're using the latest version of the package:
The error might look like:
This issue was fixed in version 0.1.5 by ensuring the required asset files are properly published and available in the correct location.
If you're still experiencing issues after upgrading, you may need to manually publish the assets:
This will ensure the CSS and JavaScript files are properly published to your application.
Configuration
After publishing the configuration file, you can customize the error pages in the config/filament-react-error-pages.php
file:
Usage
Basic Usage
Once installed and configured, the package will automatically replace Laravel's default error pages with React-powered custom error pages.
Custom Error Pages
You can create your own custom error components by:
- Creating React components in your application
- Registering them in the configuration:
Usage in Blade Templates
You can render error pages manually in your Blade templates:
Filament Integration
When Filament integration is enabled, the package will provide custom error pages within the Filament admin panel. Example usage:
Customization
Styling the Error Pages
You can customize the appearance of error pages by:
- Modifying the config file
- Creating custom React components
- Publishing and editing the views
Supported Error Codes
- 400 (Bad Request)
- 401 (Unauthorized)
- 403 (Forbidden)
- 404 (Not Found)
- 419 (Page Expired)
- 429 (Too Many Requests)
- 500 (Server Error)
- 503 (Service Unavailable)
Testing
Changelog
Please see CHANGELOG.md for more information on what has changed recently.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
For Maintainers
Releasing a New Version
When releasing a new version of this package, follow these steps to ensure assets are properly included:
- Make your changes to the codebase
-
Run the build process to generate assets:
- Check that the following files exist and have content:
dist/js/app.js
dist/css/app.css
public/js/app.js
public/css/app.css
- Update the version number in
package.json
- Update the
CHANGELOG.md
with details of the changes - Commit all changes, including the built assets in the
dist
directory - Tag the release with the new version number
-
Push to the repository with tags:
- The package will automatically update on Packagist
Important: Do not ignore the /dist
directory in .gitignore
. The built assets must be included in the repository for the package to work correctly when installed via Composer.
Security Vulnerabilities
If you discover a security vulnerability, please send an e-mail to Makara Roth via [email protected]. All security vulnerabilities will be promptly addressed.
Credits
- Makara Roth
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-react-error-pages with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
filament/filament Version ^3.0