{"id":20669939,"url":"https://github.com/a2insights/filament-saas-template","last_synced_at":"2025-04-07T17:08:28.542Z","repository":{"id":39092406,"uuid":"184589461","full_name":"a2insights/filament-saas-template","owner":"a2insights","description":"The purpose of this project is provide a simple way to create web aplications. We use Laravel framework with Filament Admin.","archived":false,"fork":false,"pushed_at":"2025-02-28T11:50:51.000Z","size":18141,"stargazers_count":85,"open_issues_count":2,"forks_count":17,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-31T16:14:02.837Z","etag":null,"topics":["back-end","filament","laravel","laravel-framework","php","saas","saas-boilerplate","scaffold"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2insights.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2019-05-02T13:50:07.000Z","updated_at":"2025-03-30T06:53:37.000Z","dependencies_parsed_at":"2024-08-13T00:18:09.012Z","dependency_job_id":"d92541f8-c254-4612-89b6-d9cdf02be39b","html_url":"https://github.com/a2insights/filament-saas-template","commit_stats":{"total_commits":314,"total_committers":1,"mean_commits":314.0,"dds":0.0,"last_synced_commit":"6cd8be926e8c8ae232654e72125509f00990f38b"},"previous_names":["a2insights/filament-saas-template"],"tags_count":27,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2insights%2Ffilament-saas-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2insights%2Ffilament-saas-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2insights%2Ffilament-saas-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2insights%2Ffilament-saas-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2insights","download_url":"https://codeload.github.com/a2insights/filament-saas-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694876,"owners_count":20980733,"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":["back-end","filament","laravel","laravel-framework","php","saas","saas-boilerplate","scaffold"],"created_at":"2024-11-16T20:17:01.816Z","updated_at":"2025-04-07T17:08:28.524Z","avatar_url":"https://github.com/a2insights.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filament SaaS\n\n## A stable version is coming.\nAll changes in the database during the beta versions need to be updated manually. In the first stable versions, I will not introduce several breaking changes without migrations.\n\n# Overview\nThis repository provides a robust template for building scalable, multi-tenant SaaS applications. It addresses the common challenges faced in multi-tenant development, such as:\n\nDiverse models: Tailored solutions for varying application requirements.\nDatabase complexities: Support for multiple database models (e.g., multi-tenant per database, schema per tenant).\nResource heterogeneity: Accommodation for diverse hardware configurations.\nBy leveraging this template, you can quickly establish a solid foundation for your SaaS project. It offers a modular structure, supports various multi-tenancy models, and integrates seamlessly with popular databases.\n\n### Need help customizing the template to your specific needs? Reach out to me! I can assist you in selecting the optimal architecture and technologies for your project.\n\n## Key features:\n\nFlexibility: Adapts to different use cases and requirements.\nScalability: Designed to handle growing user bases.\nSecurity: Protects user data.\nGet started today and build your multi-tenant SaaS application with confidence.\n\n[![GitHub license](https://img.shields.io/github/license/gothinkster/laravel-realworld-example-app.svg)](/LICENSE)\n\n## Introduction\n\nThe purpose of this project is provide a simple way to create web aplications. We use [Laravel](https://laravel.com/) framework with [Filament Admin](https://filamentphp.com/).\n\n## Dependencies\nBelow is a list of dependencies used in this package.\nA huge thank you to the maintainers of these incredible projects!\n\n| Package                                       | Description                                      | GitHub Repository                                   |\n|-----------------------------------------------|--------------------------------------------------|----------------------------------------------------|\n| filament/notifications                        | Notifications for Filament                       | [Invalid URL removed]                              |\n| filament/spatie-laravel-media-library-plugin  | Spatie Media Library plugin for Filament         | [Invalid URL removed]                              |\n| filament/spatie-laravel-settings-plugin       | Spatie Laravel Settings plugin for Filament      | [Invalid URL removed]                              |\n| filament/tables                               | Tables for Filament                              | [Invalid URL removed]                              |\n| andrewdwallo/filament-companies               | Company management for Filament                 | https://github.com/andrewdwallo/filament-companies |\n| awcodes/filament-quick-create                 | Quick create records in Filament                | https://github.com/awcodes/filament-quick-create   |\n| bezhansalleh/filament-exceptions              | Custom exception handling for Filament          | https://github.com/bezhansalleh/filament-exceptions|\n| bezhansalleh/filament-panel-switch            | Panel switch component for Filament             | [Invalid URL removed]                              |\n| bezhansalleh/filament-shield                  | Shield component for Filament                   | https://github.com/bezhansalleh/filament-shield    |\n| cms-multi/filament-clear-cache                | Clear cache button for Filament                 | https://github.com/cms-multi/filament-clear-cache  |\n| croustibat/filament-jobs-monitor              | Job monitor for Filament                        | https://github.com/croustibat/filament-jobs-monitor|\n| hasnayeen/themes                              | Themes for Filament                             | https://github.com/hasnayeen/themes                |\n| husam-tariq/filament-database-schedule        | Database schedule for Filament                  | https://github.com/husam-tariq/filament-database-schedule |\n| icetalker/filament-picker                     | Picker component for Filament                   | https://github.com/icetalker/filament-picker       |\n| jeffgreco13/filament-breezy                   | Breezy integration for Filament                 | https://github.com/jeffgreco13/filament-breezy     |\n| joaopaulolndev/filament-pdf-viewer            | PDF viewer for Filament                         | https://github.com/joaopaulolndev/filament-pdf-viewer |\n| malzariey/filament-daterangepicker-filter     | Date range picker filter for Filament           | https://github.com/malzariey/filament-daterangepicker-filter |\n| marcogermani87/filament-cookie-consent        | Cookie consent for Filament                     | https://github.com/marcogermani87/filament-cookie-consent |\n| marjose123/filament-webhook-server            | Webhook server for Filament                     | [Invalid URL removed]                              |\n| pxlrbt/filament-environment-indicator         | Environment indicator for Filament              | https://github.com/pxlrbt/filament-environment-indicator |\n| pxlrbt/filament-spotlight                     | Spotlight search for Filament                   | https://github.com/pxlrbt/filament-spotlight       |\n| solution-forest/filament-field-group          | Field group component for Filament              | [Invalid URL removed]                              |\n| solution-forest/filament-firewall             | Firewall for Filament                           | [Invalid URL removed]                              |\n| widiu7omo/filament-bandel                     | Bandel integration for Filament                 | https://github.com/widiu7omo/filament-bandel       |\n| wiebenieuwenhuis/filament-code-editor         | Code editor for Filament                        | [Invalid URL removed]                              |\n| xlite-dev/filament-impersonate                | Impersonation for Filament                      | https://github.com/xlite-dev/filament-impersonate  |\n| ysfkaya/filament-phone-input                  | Phone input for Filament                        | https://github.com/ysfkaya/filament-phone-input    |\n| z3d0x/filament-logger                         | Logger for Filament                             | https://github.com/z3d0x/filament-logger           |\n\n\n## Getting started\n\n### Installation\n\nPlease check the official laravel installation guide for server requirements before you start. [Official Documentation](https://laravel.com/docs/5.8/installation#installation)\n\nClone the repository:\n\n    git clone https://github.com/A2Insights/filament-saas-template.git\n\nSwitch to the repo folder:\n\n    cd filament-saas-template\n\nInstall all php dependencies using composer:\n\n    composer install\n\nCopy the example env file and config the database credentials.\n\n    cp .env.example .env\n\n\u003e See all env vars available in the .env.example file.\n\nConfig in the .env the database vars\n\nGenerate a new application key:\n\n    php artisan key:generate\n\nFlush de application cache:\n\n    php artisan optimize\n\nRun the database migrations.\n\n    php artisan filament-saas:install\n\nPS: Make sure you set the correct database connection information before running the install command.\n\nStart the local development server:\n\n    php artisan serve\n\nInstall all node dependencies using npm:\n\n    npm install\n\nCompile the css and javascript assets:\n\n    npm run dev\n\nYou can now access the server at \u003chttp://127.0.0.1:8000\u003e\n\n### Finish \n\nGo to \u003chttp://localhost/sysadmin/login\u003e and login with the following credentials:\n\n#### Super Admin\n- **Email:** `super_admin@filament-saas.dev`\n- **Senha:** `123456`\n\n#### Admin \n- **Email:** `admin@filament-saas.dev`\n- **Senha:** `123456`\n\n#### User \n- **Email:** `user@filament-saas.dev`\n- **Senha:** `123456`\n\n### Using Laravel Sail to develop\n\nmake .env config:\n\n    DB_CONNECTION=mysql\n    DB_HOST=mysql\n    DB_PORT=3306\n    DB_DATABASE=laravel\n    DB_USERNAME=root\n    DB_PASSWORD=\n\nAnd run:\n\n    vendor/bin/sail build\n\n    vendor/bin/sail up -d\n\n    vendor/bin/sail sail artisan optimize\n\n    vendor/bin/sail artisan filament-saas:install\n\n    npm run install \n\n    npm run dev\n\nYou can now access the server at \u003chttp://localhost\u003e\n\n**For more information: \u003chttps://laravel.com/docs/sail\u003e**\n\n## The big problem: [Livewire+Filament+TenancyForLaravel]\n\nWe use Tenancy for Laravel to load the tenant context, but there is a significant issue when using the public or local filesystem driver. https://github.com/archtechx/tenancy/issues/1212. I haven't been able to resolve this and make file uploads work in tenant mode—it only works in non-tenant mode. However, if you're using the S3 driver in production, it works perfectly.\n\nI recommend using a single bucket for all tenants because I tested and verified that it works. There are many tricky issues to pinpoint. I’ve already spent several hours trying to make it work locally in tenant mode but failed. I will wait for further improvements in the package https://tenancyforlaravel.com/ or consider dropping it soon. Since this has not been a problem in production where I use AWS S3 for file storage, I don’t plan to address it for now. However, if you know how to resolve this, feel free to share a solution.\n\n\n## Screenshots\n![Dasboard](./public/images/screenshots/1.png)\n![Dasboard](./public/images/screenshots/2.png)\n![Dasboard](./public/images/screenshots/3.png)\n![Dasboard](./public/images/screenshots/4.png)\n![Dasboard](./public/images/screenshots/5.png)\n![Dasboard](./public/images/screenshots/6.png)\n![Dasboard](./public/images/screenshots/7.png)\n\n### And much more...\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email atila.danvi@outlook.com instead of using the issue tracker.\n\n## Credits\n\n-   [Atila Silva](https://github.com/a21ns1g4ts)\n-   [All Contributors](../../contributors)\n\n## License\n\nThe MIT License. Please see [license file](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2insights%2Ffilament-saas-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2insights%2Ffilament-saas-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2insights%2Ffilament-saas-template/lists"}