shefoo10/add-faq

This is my package add-faq

Fund package maintenance!
SHEFOO10

dev-main 2025-01-09 23:31 UTC

This package is auto-updated.

Last update: 2025-08-10 00:42:03 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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