PHPackages                             awcodes/filament-sentry - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. awcodes/filament-sentry

ActivePackage[Framework](/categories/framework)

awcodes/filament-sentry
=======================

A basic auth scaffolding for Filament utilizing Breezy, Shield and custom User Resources.

v2.0.1(2y ago)82601MITPHPPHP ^8.0.2

Since Jul 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/awcodes/filament-sentry)[ Packagist](https://packagist.org/packages/awcodes/filament-sentry)[ RSS](/packages/awcodes-filament-sentry/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

Filament Sentry
===============

[](#filament-sentry)

A basic auth scaffolding for Filament utilizing [Filament Breezy](https://github.com/jeffgreco13/filament-breezy), [Filament Shield](https://github.com/bezhanSalleh/filament-shield) and custom User Resources.

Installation
------------

[](#installation)

Install the package via composer

```
composer require awcodes/filament-sentry
```

Publish config files.

This will publish Sentry's config and Sentry's version of Breezy's config with stronger default password rules. You are free to modify this however you see fit.

```
php artisan vendor:publish --tag=filament-sentry-config
```

Add the `HasFilamentShield` trait to your User model(s):

```
use Illuminate\Foundation\Auth\User as Authenticatable;
use BezhanSalleh\FilamentShield\Traits\HasFilamentShield;

class User extends Authenticatable
{
    use HasFilamentShield; // or HasRoles

    // ...
}
```

Install Shield

```
php artisan shield:install --fresh
```

Emailing new users with password reset link
-------------------------------------------

[](#emailing-new-users-with-password-reset-link)

Filament Sentry has the ability to email new users with a password reset link when they are created so they can make their password more accessible to them. *This really should only be needed if you have disabled registration for your app.*

This functionality can be turned on and off in the config file. Use the 'noreply' setting to set the email address that will be used as the sender of the email sent to new users.

```
    'noreply' => 'example@example.com',
    'email_new_users' => true
```

Unguarding Super Admin
----------------------

[](#unguarding-super-admin)

Filament Sentry unguards users with the super\_admin role allowing them to bypass policies and have full control over the system. If you do not want super\_admins to have this priviledge you can disable it in the config.

```
    'unguard_super_admin' => false,
```

Modifying the User Resource
---------------------------

[](#modifying-the-user-resource)

To modify the User Resource you will need to eject the resource and pages into your app. This will publish the resource / pages to `app/Filament/Resources` and update the `user_resource` setting in Sentry's config file.

```
php artisan sentry:eject-resources
```

> **Note**Any additional fields added to the user will need to be added to the $nonPermissionsFilter in both the CreateUser and EditUser resource pages.

```
// CreateUser.php
protected function mutateFormDataBeforeCreate(array $data): array
{
    $nonPermissionsFilter = ['name', 'email', 'password', 'bio', 'etc'];
    ...
}

// EditUser.php
protected function mutateFormDataBeforeSave(array $data): array
{
    $nonPermissionsFilter = ['name', 'email', 'password', 'bio', 'etc'];
    ...
}
```

Seeder Reference (Optional)
---------------------------

[](#seeder-reference-optional)

In `database/seeders/DatabaseSeeder.php` or where appropriate:

```
use App\Models\User;
use Spatie\Permission\Models\Role;
use Illuminate\Support\Facades\Artisan;
use Spatie\Permission\Models\Permission;

$admin = Role::create(['name' => 'admin'])
    ->givePermissionTo(Permission::where('name', 'not like', '%_role')->get());
$editor = Role::create(['name' => 'editor'])
    ->givePermissionTo(Permission::where('name', 'not like', '%_role')->where('name', 'not like', '%_user')->get());

Artisan::call('shield:generate');

User::withoutEvents(function() {
    User::factory()->create([
        'name' => 'Tony Stark',
        'email' => 'i.am@ironman.com',
    ])->assignRole('super_admin');

    User::factory()->create([
        'name' => 'Pepper Pots',
        'email' => 'pepper.pots@ironman.com',
    ])->assignRole('admin');
});
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Recently: every ~76 days

Total

12

Last Release

1077d ago

Major Versions

1.x-dev → v2.0.02022-09-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3596800?v=4)[Adam Weston](/maintainers/awcodes)[@awcodes](https://github.com/awcodes)

---

Top Contributors

[![awcodes](https://avatars.githubusercontent.com/u/3596800?v=4)](https://github.com/awcodes "awcodes (9 commits)")

---

Tags

frameworklaravelfilament

### Embed Badge

![Health badge](/badges/awcodes-filament-sentry/health.svg)

```
[![Health](https://phpackages.com/badges/awcodes-filament-sentry/health.svg)](https://phpackages.com/packages/awcodes-filament-sentry)
```

###  Alternatives

[raugadh/fila-starter

Laravel Filament Starter.

614.9k](/packages/raugadh-fila-starter)[ercogx/laravel-filament-starter-kit

This is a Filament v3 Starter Kit for Laravel 12, designed to accelerate the development of Filament-powered applications.

401.5k](/packages/ercogx-laravel-filament-starter-kit)[siubie/kaido-kit

Filament Admin Panel Starter Kit with pre-configured packages and settings

3824.9k](/packages/siubie-kaido-kit)[camya/filament-title-with-slug

TitleWithSlugInput - Easy Permalink Slugs for the FilamentPHP Form Builder (PHP / Laravel / Livewire)

13444.5k](/packages/camya-filament-title-with-slug)[awcodes/filament-addons

A set of components / fields to extend Filament Admin.

3013.1k2](/packages/awcodes-filament-addons)[blendbyte/filament-title-with-slug

TitleWithSlugInput - Easy Permalink Slugs for the FilamentPHP Form Builder (PHP / Laravel / Livewire)

1322.4k3](/packages/blendbyte-filament-title-with-slug)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
