{"repo":"matt-daneshvar/laravel-survey","free":true,"listed":false,"github":"https://github.com/matt-daneshvar/laravel-survey","clone":"git clone https://github.com/matt-daneshvar/laravel-survey.git","description":"Create and manage surveys within your Laravel app.","language":"PHP","stars":290,"topics":["laravel","survey","poll"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Survey Create and manage surveys within your Laravel app. This video walks through installing this package and creating a basic survey. Installation Require the package using composer. Publish the package migrations. Run the migrations to create all the required tables. Usage Creating a Survey Creating a new Survey is easy! You can build your survey fluently just like how you create all your Eloquent models in your app. See the list of available question types. Creating Multiple Sections You may also park your questions under multiple sections. Creating an Entry From an Array The Entry model comes with a fromArray function. This is especially useful when you're creating an entry from a form submission. The answer array should be in the format of q + question id = answer , thus becoming 'q1' = 'my answer' . By a Specific User You may fluently specify the participant using the by() function. Setting Constraints When creating your survey, you may set some constraints to be enforced every time a new Entry is being created. Allowing Guest Entries By default, Entry models require a participant id when being created. If you wish to change this behaviour and accept guest entries, set the accept-guest-entries option on your Survey model. Adjusting Entries Per Participant Limit All Survey models default to accept only 1 entry per unique participant. You may adjust the limit-per-participant option on your Survey model or set it to -1 to remove this limit altogether. Note that th","default_branch":null,"files":null,"tree":[],"storefront":"/r/matt-daneshvar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/matt-daneshvar/laravel-survey/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}