leapfinder / laravel-questionnaire
为 laravel 5.8+ 网站或应用程序提供的一个非常简单的问卷调查
v1.0.0
2019-04-10 19:28 UTC
Requires
- php: ^7.1
- illuminate/config: ~5.8.0
- illuminate/database: ~5.8.0
- illuminate/support: ~5.8.0
Requires (Dev)
- ext-json: *
- orchestra/testbench: ~3.8.0
- phpunit/phpunit: ^7.5|^8.0
- scrutinizer/ocular: ^1.5
This package is auto-updated.
Last update: 2024-09-16 11:06:13 UTC
README
此包允许您在 Laravel 应用程序中为所有用户添加问卷调查
安装
此包可用于 Laravel 5.8 或更高版本。
composer require leapfinder/laravel-questionnaire
php artisan vendor:publish --provider='LeapFinder\Questionnaire\QuestionnaireServiceProvider'
使用
此包提供的模型可以像 Laravel 应用程序中的任何其他模型一样使用。
示例
use LeapFinder\Questionnaire\Models\Question; use LeapFinder\Questionnaire\Models\Answer; // Get all questions Question::get(); // Get answers for a specific user Answer::where('user_id', $id)->get();
致谢
- Milo Cesar - laravel-questionnaire 是基于 laravel-survey 的包
- 所有贡献者
许可证
MIT 许可证(MIT)。有关更多信息,请参阅 许可证文件。