© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
hxnnxs

Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) mus

When I try to make the Return button to the authorization page, I get this error. Here is the code:
use App\Models\Company;
use Filament\Actions\Action;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\RegisterTenant;

class RegisterCompany extends RegisterTenant
{
    public static function getLabel(): string
    {
        return 'Create company';
    }
    public function form(Form $form): Form
    {
        return $form
            ->schema([
                TextInput::make('name')
                    ->required()
                ->placeholder('FinTrack LTD.')
                ->minLength(2)
                ->maxLength(20)
                ->prefixIcon('heroicon-o-home')
                ->unique(),
                TextInput::make('short_name')
                    ->required()
                    ->prefixIcon('heroicon-o-home')
                    ->placeholder('FT LTD.')
                    ->minLength(2)
                    ->maxLength(10)
                    ->unique(),
                Select::make('type')
                    ->required()
                    ->options([
                        'General' => 'General',
                        'Simplified' => 'Simplified',
                        'Patent' => 'Patent'
                    ]),
                Action::make('Auth')
                    ->url(route('filament.dashboard.auth.login')),
            ]);
    }
use App\Models\Company;
use Filament\Actions\Action;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\RegisterTenant;

class RegisterCompany extends RegisterTenant
{
    public static function getLabel(): string
    {
        return 'Create company';
    }
    public function form(Form $form): Form
    {
        return $form
            ->schema([
                TextInput::make('name')
                    ->required()
                ->placeholder('FinTrack LTD.')
                ->minLength(2)
                ->maxLength(20)
                ->prefixIcon('heroicon-o-home')
                ->unique(),
                TextInput::make('short_name')
                    ->required()
                    ->prefixIcon('heroicon-o-home')
                    ->placeholder('FT LTD.')
                    ->minLength(2)
                    ->maxLength(10)
                    ->unique(),
                Select::make('type')
                    ->required()
                    ->options([
                        'General' => 'General',
                        'Simplified' => 'Simplified',
                        'Patent' => 'Patent'
                    ]),
                Action::make('Auth')
                    ->url(route('filament.dashboard.auth.login')),
            ]);
    }
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament\Infolists\ComponentContainer::Filament\Infolists\Concerns\{closure}(): Argument #1 ($compon
FilamentFFilament / ❓┊help
3y ago
<?phpnamespace Webkul\Chatter\Livewire;use Filament\Forms;use Filament\Forms\Concerns\Interacts
FilamentFFilament / ❓┊help
15mo ago
SelectTree plugin filament - Trait "Filament\Forms\Components\Concerns\HasPivotData" not found
FilamentFFilament / ❓┊help
2y ago
Argument #1 ($form) must be of type Filament\Forms\Form, Filament\Infolists\Infolist given
FilamentFFilament / ❓┊help
4mo ago