sonph/survey

check how controller path go

V2.0.5 2023-10-27 06:47 UTC

This package is auto-updated.

Last update: 2024-08-27 08:44:26 UTC


README

  1. In your terminal:
$ composer require sonph/survey
  1. Publish the config file:
php artisan vendor:publish --provider="Sonphait\Survey\SurveyServiceProvider"
  1. Run migration:
   php artisan migrate
  1. Run seeder:
   php artisan db:seed --class=SurveySeeder
  1. View index page: "/survey/index"

  2. [optional] Change values in config/survey-manager.php (route prefix, middleware, file upload max size, ...)

  3. [optional] To test file uploaded by user, uncomment save file to S3 code in public/vendor/survey-manager/js/show_form.js. The File type question itself must have 'storeDataAsText' as false (see admin README)

  • Note: To use S3 as file storage, change value of 'client_s3_url' and 'client_s3_folder' in config/survey-manager.php to where you save file on S3