A starter template for Filament V3 and Laravel, preconfigured with authentication, roles, permissions, and much more.
daniacademy/filament-skeleton is a Laravel package for a starter template for filament v3 and laravel, preconfigured with authentication, roles, permissions, and much more..
It currently has 0 GitHub stars and 17 downloads on Packagist (latest version 1.0.5).
Install it with composer require daniacademy/filament-skeleton.
Discover more Laravel packages by daniacademy
or browse all Laravel packages to compare alternatives.
Last updated

This repository is a ready-to-use skeleton for building Laravel applications with Filament Admin. It includes several pre-configured packages and functionalities to streamline your development process.
Schedule::command('queue:work --stop-when-empty')->everyMinute()
->withoutOverlapping();
Schedule::command('health:queue-check-heartbeat')->everyMinute();
Schedule::command('logs:clean')->daily()->at('00:00');
Schedule::command('audit:clean')->daily()->at('00:30');
Schedule::command('backup:clean')->daily()->at('01:00');
Schedule::command('backup:run')->daily()->at('01:30');
Schedule::command('db:optimize')->daily()->at('03:00');
preventLazyLoading() method: Taylor Otwell tweeted about this new feature available in Laravel 8.43.0 that disables lazy loading your Eloquent models, avoiding the N+1 problem. This way every time you use lazy loading, an exception will be thrown, but only on non-production environment, so no need to worry about crashing your production if you miss something.This project can be deployed in two ways: as a Composer project or as a GitHub template. Regardless of the chosen method, make sure to continue with the "How to deploy" section to complete the installation and configuration.
composer create-project daniacademy/filament-skeleton projectName
composer install
.env.example file and rename it to .env:
cp .env.example .env
.env file.php artisan key:generate
php artisan migrate
php artisan db:seed
php artisan shield:super-admin
Optimize the Laravel and Filament Application It is highly recommended to optimize Laravel and Filament to enhance the application's performance. To do so, run the following command:
composer production
Remember to execute this command after making any changes or deploying a new release to production.
Review canAccessPanel() Method for Production
For enhanced security in a production environment, it's recommended to review and customize the canAccessPanel() method within the User model. This method controls access to the admin panel and can be tailored to enforce specific conditions, such as restricting access based on user roles, permissions, or other business logic.
By default, the canAccessPanel() method in the User model returns true, allowing all users to access the admin panel.
Default Implementation:
public function canAccessPanel(): bool
{
return true;
}
To adapt the method for your production environment, you can define specific conditions based on your application's requirements. Below is an example of how to customize the canAccessPanel() method:
Example: Customizing canAccessPanel()
public function canAccessPanel(): bool
{
return $this->hasRole('Admin') || $this->is_super_admin;
}
Taking this step ensures that only authorized users can access the admin panel, reducing potential vulnerabilities in your application.
The default credentials for accessing the application as a super-admin are:
[email protected]123456By default, you can access the admin panel at http://localhost/admin. Ensure your local server is running, and the necessary configurations in your .env file are correctly set up to avoid access issues.
This template is designed with love ❤️ to provide a robust starting point for Laravel applications built with Filament Admin. It includes pre-installed packages and essential configurations to reduce setup time and enhance productivity.
Feel free to customize and extend it as needed for your projects.
I would like to express my gratitude to Laravel and Filament for their invaluable contributions to the community and their continuous effort in advancing the ecosystem. Their work has made web development more efficient and enjoyable.
I would also like to thank my family for their patience and understanding during the many hours I spend working on development. Their support means the world to me.
Thank you all!