{"id":22398750,"url":"https://github.com/tappnetwork/filament-survey","last_synced_at":"2025-10-28T14:30:34.753Z","repository":{"id":98940388,"uuid":"536767741","full_name":"TappNetwork/filament-survey","owner":"TappNetwork","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-13T18:13:55.000Z","size":61,"stargazers_count":27,"open_issues_count":5,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-06T06:13:15.752Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TappNetwork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-14T21:38:51.000Z","updated_at":"2024-12-30T10:50:22.000Z","dependencies_parsed_at":"2024-05-04T18:38:35.333Z","dependency_job_id":null,"html_url":"https://github.com/TappNetwork/filament-survey","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-survey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-survey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-survey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Ffilament-survey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TappNetwork","download_url":"https://codeload.github.com/TappNetwork/filament-survey/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238659459,"owners_count":19509137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-12-05T07:12:03.720Z","updated_at":"2025-10-28T14:30:34.747Z","avatar_url":"https://github.com/TappNetwork.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filament Laravel Survey\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tapp/filament-survey.svg?style=flat-square)](https://packagist.org/packages/tapp/filament-survey)\n![Code Style Action Status - Pint](https://github.com/TappNetwork/filament-survey/actions/workflows/pint.yml/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/tapp/filament-survey.svg?style=flat-square)](https://packagist.org/packages/tapp/filament-survey)\n\nA Filament plugin for [Laravel Survey](https://github.com/matt-daneshvar/laravel-survey) package.\n\nThis package provides Filament resources for [Laravel Survey](https://github.com/matt-daneshvar/laravel-survey).\n\n## Requirements\n- PHP 8.1+\n- Laravel 10.0+\n- [Filament 3.0+](https://github.com/laravel-filament/filament)\n\n## Dependencies\n- [maatwebsite/excel](https://github.com/SpartnerNL/Laravel-Excel)\n- [matt-daneshvar/laravel-survey](https://github.com/matt-daneshvar/laravel-survey)\n- [spatie/eloquent-sortable](https://github.com/spatie/eloquent-sortable)\n\n### Version Compatibility\n\n Filament | Filament Survey\n:---------|:---------------\n 2.x      | 2.x\n 3.x      | 3.x\n 4.x      | 4.x\n\n## Installation\n\n### Installing the required package (Laravel Survey)\n\nThis plugin uses a modifed version of [Laravel Survey](https://github.com/matt-daneshvar/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](https://github.com/matt-daneshvar/laravel-survey/pull/39).\n\nSo you must install this version instead of requiring `matt-daneshvar/laravel-survey`. In order to do so, add to your project's `composer.json`:\n\n```php\n\"require\": {\n    ...\n    \"matt-daneshvar/laravel-survey\": \"dev-translatable\",\n},\n\n\"repositories\": [\n    ...\n    {\n        \"type\": \"vcs\",\n        \"url\": \"https://github.com/TappNetwork/laravel-survey\"\n    }\n],\n```\n\nInstall it using Composer\n\n```bash\ncomposer update\n```\n\nPublish the package migrations\n\n```bash\nphp artisan vendor:publish --provider=\"MattDaneshvar\\Survey\\SurveyServiceProvider\" --tag=\"migrations\"\n```\n\nRun the migrations\n\n```bash\nphp artisan migrate\n```\n\n### Installing the Filament Survey plugin\n\n### Installation\n\nYou can install the package via Composer:\n\n#### For Filament 4\n\n\u003e **Note** \n\u003e For **Filament 4.x** check the **[4.x](https://github.com//TappNetwork/filament-survey/tree/4.x)** branch\n\n#### For Filament 3\n\nInstall the plugin via Composer:\n\n```bash\ncomposer require tapp/filament-survey:\"^3.0\"\n```\n\n#### For Filament 2\n\n\u003e **Note** \n\u003e For **Filament 2.x** check the **[2.x](https://github.com//TappNetwork/filament-survey/tree/2.x)** branch\n\n#### Optional: Publish the plugin's views, translations, and config\n\nYou can publish the view file with:\n\n```bash\nphp artisan vendor:publish --tag=\"filament-survey-views\"\n```\n\nYou can publish the translations files with:\n\n```bash\nphp artisan vendor:publish --tag=\"filament-survey-translations\"\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"filament-survey-config\"\n```\n\n### Adding the plugin to a panel\n\nAdd this plugin to a panel on `plugins()` method (e.g. in `app/Providers/Filament/AdminPanelProvider.php`).\nThis plugin requires the [Spatie Translatable plugin](https://filamentphp.com/plugins/filament-spatie-translatable), so it should also be added on a panel like so:\n\n```php\nuse Filament\\SpatieLaravelTranslatablePlugin;\nuse Tapp\\FilamentSurvey\\FilamentSurveyPlugin;\n \npublic function panel(Panel $panel): Panel\n{\n    return $panel\n        // ...\n        -\u003eplugins([\n            FilamentSurveyPlugin::make(),\n            SpatieLaravelTranslatablePlugin::make(),\n            //...\n        ]);\n}\n```\n\nThat'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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Ffilament-survey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftappnetwork%2Ffilament-survey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Ffilament-survey/lists"}