Download the PHP package tapp/filament-survey without Composer
On this page you can find all versions of the php package tapp/filament-survey. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tapp/filament-survey
More information about tapp/filament-survey
Files in tapp/filament-survey
Package filament-survey
Short Description Filament Laravel Survey plugin.
License MIT
Homepage https://github.com/TappNetwork/filament-survey
Informations about the package filament-survey
Filament Laravel Survey
A Filament plugin for Laravel Survey package.
This package provides Filament resources for Laravel Survey.
Requirements
- PHP 8.1+
- Laravel 10.0+
- Filament 3.0+
Dependencies
Installation
Installing the required package (Laravel Survey)
This plugin uses a modifed version of Laravel Survey package: https://github.com/tappnetwork/laravel-survey/tree/translatable that adds translatable and sortable fields to the survey models. More details in this PR: matt-daneshvar/laravel-survey#39.
So you must install this version instead of requiring matt-daneshvar/laravel-survey
. In order to do so, add to your project's composer.json
:
Install it using Composer
Publish the package migrations
Run the migrations
Installing the Filament Survey plugin
Install the plugin via Composer:
Note For Filament 2.x check the 2.x branch
Optional: Publish the plugin's views, translations, and config
You can publish the view file with:
You can publish the translations files with:
You can publish the config file with:
Adding the plugin to a panel
Add this plugin to a panel on plugins()
method (e.g. in app/Providers/Filament/AdminPanelProvider.php
).
This plugin requires the Spatie Translatable plugin, so it should also be added on a panel like so:
That's it! Now the surveys, answers, and entries resources will be displayed in the left sidebar in your Filament admin panel. To enable dedicated resources for Sections, and Questions, publish the config and add QuestionResource and SectionResource to the 'resources' array.
All versions of filament-survey with dependencies
filament/filament Version ^3.0-stable
filament/spatie-laravel-translatable-plugin Version ^3.0-stable
maatwebsite/excel Version ^3.1
spatie/eloquent-sortable Version ^4.0
spatie/laravel-package-tools Version ^1.9