Download the PHP package sfolador/support without Composer
On this page you can find all versions of the php package sfolador/support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sfolador/support
More information about sfolador/support
Files in sfolador/support
Package support
Short Description This package helps you to create a support page and manage the support requests on Laravel.
License MIT
Homepage https://github.com/sfolador/support
Informations about the package support
Laravel Support Page
A Laravel package that provides a ready-to-use support page with a contact form, email notifications, and optional Filament admin panel integration.
Features
- Beautiful, responsive support form with Tailwind CSS styling
- Email notifications for new support requests
- Optional Google reCAPTCHA v2 protection
- Customizable support request types
- Translatable (i18n support)
- Optional Filament admin panel integration
- Fully configurable routes, middleware, and layout
Requirements
- PHP 8.3 or higher
- Laravel 11.x, 12.x, or 13.x
Installation
Install the package via Composer:
Publish and run the migrations:
Publish the config file:
Configuration
After publishing, the configuration file will be located at config/support.php:
Environment Variables
Add these variables to your .env file:
Usage
Once installed, the support page is available at /support (or your configured route_prefix).
Routes
The package registers two routes:
| Method | URI | Name | Description |
|---|---|---|---|
| GET | /support | support | Display the support form |
| POST | /support | support.store | Submit a support request |
Using Your Own Layout
By default, the package uses a minimal standalone layout. To use your application's layout:
-
Update
config/support.php: - Make sure your layout has the following sections:
@yield('title')- Page title@yield('scripts')- For reCAPTCHA script (if enabled)@yield('content')- Main content
Customizing Views
Publish the views to customize them:
The views will be published to resources/views/vendor/support/.
Customizing Translations
Publish the translation files:
The translations will be published to lang/vendor/support/.
Custom Support Types
Modify the support_types array in the config to add or change support request types:
Filament Integration
If you're using Filament, this package provides a ready-to-use admin panel for managing support requests.
Setup
Register the plugin in your AdminPanelProvider:
This adds a "Support Requests" resource to your admin panel where you can:
- View all support requests
- Filter by support type
- View individual request details
- Delete requests
Database
The package creates a support_requests table with the following structure:
| Column | Type | Description |
|---|---|---|
| id | bigint | Primary key |
| name | string | Requester's name |
| string | Requester's email | |
| support_type | string | Type of support request |
| content | text | Request details |
| created_at | timestamp | Creation timestamp |
| updated_at | timestamp | Update timestamp |
Accessing Support Requests
You can query support requests using the SupportRequest model:
Email Notifications
When a support request is submitted, an email notification is sent to the configured support_email address. The email includes:
- Requester's name
- Requester's email
- Support type
- Request content
Make sure your Laravel mail configuration is properly set up.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Simone Folador
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of support with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0