获取FAQ API列表

dev-master 2022-05-26 07:27 UTC

This package is auto-updated.

Last update: 2024-09-26 12:37:22 UTC


README

Faq是一个Laravel包,用于快速在Laravel中设置FAQ API模块。

安装

使用包管理器composer安装Faq。

步骤 – 1 📌

进入您的Laravel应用文件夹

步骤 – 2 📌

打开命令提示符

步骤 – 3 📌
composer require jsbhudev/faq
步骤 – 4 📌
php artisan vendor:publish --tag=config
步骤 – 5 📌
Go to file config\faq.php

按照路径数组设置自定义输出

'path' => [
    'route' => 'api/faq',
    'success_msg' => 'Faq Get Successfully',
    'question' => 'Question',
    'answer' => 'Ans',        
    ],
步骤 – 6 📌

设置.env文件,您可以使用它进行常规操作

对于新设置
php artisan migrate:fresh
对于现有设置
php artisan migrate
步骤 – 7 📌

根据命令获取注册路由列表

php artisan route:list
步骤 – 8 📌

以下路由是否存在

URI         | Name          | Action
api/faq     | api.faq.index | jsbhudev\faq\Http\Controllers\Api\FaqController@index
🙏感谢您的关注。🙏