shefoo10 / add-faq
This is my package add-faq
Fund package maintenance!
SHEFOO10
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
- spatie/eloquent-sortable: *
- spatie/laravel-package-tools: ^1.16
- spatie/laravel-translatable: ^6.9
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.9
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
This package is auto-updated.
Last update: 2025-08-10 00:42:03 UTC
README
add-faq Package for Laravel
The add-faq package is a simple and efficient solution for adding FAQ functionality to your Laravel application. This package automates the creation of Filament resources, models, and migrations for managing Frequently Asked Questions (FAQs) in a structured and easy-to-use interface.
Key Features: Automatic Model Creation: Generates a Faq model to interact with the FAQs data. Migration Setup: Automatically creates the migration file for the faqs table. Filament Resource: Provides a Filament resource to easily manage FAQs through the given panel.
Installation
You can install the package via composer:
composer require shefoo10/add-faq php artisan add-faq:install
Expected Output
Publishing migrations...
Would you like to run the migrations now? (yes/no) [no]:
> yes
Running migrations...
INFO Running migrations.
2025_01_09_224821_create_f_a_q_s_table ...................................................... 22.33ms DONE
Publishing service provider...
add-faq has been installed!
INFO Publishing [add-faq-model] assets.
Copying file [C:\Users\DONATELO\IdeaProjects\add_FAQ\Models\FAQ.php] to [C:\Users\DONATELO\IdeaProjects\{ Project Name }\app\Models\FAQ.php] DONE
Which panel do you want to install the package for? [admin]:
> admin
File [path / to / { Project Name } \app\Filament/Admin/Resources/FAQResource.php] Added to Admin Panel
File [path / to / { Project Name } \app\Filament/Admin/Resources/FAQResource/Pages/CreateFAQ.php] Added to Admin Panel
File [path / to / { Project Name } \app\Filament/Admin/Resources/FAQResource/Pages/EditFAQ.php] Added to Admin Panel
File [path / to / { Project Name } \app\Filament/Admin/Resources/FAQResource/Pages/ListFAQs.php] Added to Admin Panel