DS
DS
FFilament
Created by DS on 8/29/2023 in #❓┊help
Create action in simple resource as slideover
No description
5 replies
FFilament
Created by DS on 8/10/2023 in #❓┊help
is there a way to use spatie roles with teams id and filament multenancy on V3 ?
im trying to implement tenancy on v3 using filament multitenancy and also use spatie roles team functionality https://spatie.be/docs/laravel-permission/v5/basic-usage/teams-permissions at this point i can use roles and permissions and create the role with the tenant id associated butt i can'tmake it work in the relationship manager
<?php

namespace App\Filament\Panel\Resources\UserResource\RelationManagers;

use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Tables;
use Filament\Tables\Table;


class RoleRelationManager extends RelationManager
{
protected static string $relationship = 'roles';

protected static ?string $recordTitleAttribute = 'name';


public function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->required()
->maxLength(255),
]);
}

public function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name'),
])
->filters([
//
])
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
])
->actions([
Tables\Actions\DetachAction::make(),
])
->bulkActions([
Tables\Actions\DetachBulkAction::make(),
]);
}
}
<?php

namespace App\Filament\Panel\Resources\UserResource\RelationManagers;

use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Tables;
use Filament\Tables\Table;


class RoleRelationManager extends RelationManager
{
protected static string $relationship = 'roles';

protected static ?string $recordTitleAttribute = 'name';


public function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->required()
->maxLength(255),
]);
}

public function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make('name'),
])
->filters([
//
])
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
])
->actions([
Tables\Actions\DetachAction::make(),
])
->bulkActions([
Tables\Actions\DetachBulkAction::make(),
]);
}
}
any help will be appreciated 🙂
122 replies
FFilament
Created by DS on 8/3/2023 in #❓┊help
is possible to condition the profile and register tenant for some users on the panel config?
i would like to hide profile edition on tenant and also register new tenant for some users without create new panel ... is possible to do that? i.e some users can not creat new tenants only some user with permision or role
6 replies
FFilament
Created by DS on 7/30/2023 in #❓┊help
is possible to condition the profile and register tenant for some users on the panel config?
i would like to hide profile edition on tenant and also register new tenant for some users without create new panel ... is possible to do that?
1 replies
FFilament
Created by DS on 7/28/2023 in #❓┊help
problems in v3 custom panel auth
i'm having problems when i create new panel and trying to auth, i got Route [login] not defined.
15 replies