Download the PHP package ketchalegend/filament-survey without Composer
On this page you can find all versions of the php package ketchalegend/filament-survey. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ketchalegend/filament-survey
More information about ketchalegend/filament-survey
Files in ketchalegend/filament-survey
Package filament-survey
Short Description Filament Laravel Survey plugin with multi tenancy
License MIT
Homepage https://github.com/Ketchalegend/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/ketchalegend/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:
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, sections, questions, answers, and entries resources will be displayed in the left sidebar in your Filament admin panel.
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