joaoppcastro
Filament Shield
Does anyone have this error/warning when running this command: php artisan shield:install --fresh?
SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "channel_id" of relation "model_has_roles" violates not-null constraint
DETAIL: Failing row contains (1, App\Models\User, 1, null). (Connection: pgsql, SQL: insert into "model_has_roles" ("channel_id", "model_id", "model_type", "role_id") values (?, 1, App\Models\User, 1))
Thanks to anyone who can help 🙂
3 replies
How to redirect route to panel with id or channel_id?
I have this route:
Route::get('/login', function () {
return redirect(route('filament.admin.auth.login'));
})->name('login');
Supposedly I'm doing the email verification and once verified it goes to the login but after that I wanted it to go to the admin panel, the redirect isn't exactly that, so what's there goes to the home page 127.0.0.1:8000, The intention was to go to the panel through the channel if I understand myself, can anyone help?
7 replies
create a user and send a verification email
Has anyone managed to create a user and then send a verification email, for example via mailcatcher to test, I think I've already tried with the documentation and some tutorials and I didn't succeed, can anyone shed some light?
4 replies
pxlrbt/filament-spotlight
I have an issue when I configure my adminpanelprovider.php with spotlightplugin::make()
He throws that error: Missing required parameter for [Route: filament.admin.pages.dashboard] [URI: admin/{tenant}] [Missing parameter: tenant].
@Dennis Koch or @Dan Harrin, anyone can help with this?
9 replies
spatie/eloquent-sortable
Can anyone help to override the spatie/eloquent sortable plugin to reorder the table? I'm working with relation manager
I have this code in my resource:
public $sortable = [
'order_column_name' => 'order',
'sort_when_creating' => true,
];
public function buildSortQuery()
{
return static::query()->where('parent_id', $this->parent_id);
} Can you help me if possible? @Dan Harrin
2 replies
unique fails
I have this little piece of code:
->unique(
table: Sitemap::class,
column: 'slug',
ignoreRecord: true,
ignorable: new Page)
supposedly it keeps the same slug saved if I edit anything and I save it again, but it tells me that the slug already exists.
Can anyone help or give a suggestion?
16 replies