Hadi
Hadi
FFilament
Created by Frank Wiebe on 3/22/2024 in #❓┊help
Add tenant slug to Sparks return url
@Frank Wiebe hey frank did you find the solution ? I'm facing the same thing here
12 replies
FFilament
Created by Hadi on 5/27/2024 in #❓┊help
RegisterTenant View layout
Hey Dan, perhaps my question should be: Is there a view that I can extend to fit the wizard in it, instead of using 'page.simple'?
11 replies
FFilament
Created by Hadi on 5/27/2024 in #❓┊help
RegisterTenant View layout
register-business.blade.php
<x-filament-panels::page.simple>

</x-filament-panels::page.simple>
<x-filament-panels::page.simple>

</x-filament-panels::page.simple>
11 replies
FFilament
Created by Hadi on 5/27/2024 in #❓┊help
RegisterTenant View layout
namespace App\Filament\App\Pages\Tenancy;

use Filament\Pages\Tenancy\RegisterTenant;
use Filament\Support\Enums\MaxWidth;

class RegisterBusiness extends RegisterTenant
{

// protected static string $view = 'filament.app.pages.tenancy.register-business';

public static function getLabel(): string
{
return 'Register Business';
}

public function form(Form $form): Form
{
return $form
->schema([
Wizard::make([
Wizard\Step::make('Brand Info')
->schema([
]),
Wizard\Step::make('Availability')
->schema([
]),
])
]);
}

protected function handleRegistration(array $data): Business
{
$business = Business::create($data);

$business->employees()->attach(auth()->user());

return $business;
}
}
namespace App\Filament\App\Pages\Tenancy;

use Filament\Pages\Tenancy\RegisterTenant;
use Filament\Support\Enums\MaxWidth;

class RegisterBusiness extends RegisterTenant
{

// protected static string $view = 'filament.app.pages.tenancy.register-business';

public static function getLabel(): string
{
return 'Register Business';
}

public function form(Form $form): Form
{
return $form
->schema([
Wizard::make([
Wizard\Step::make('Brand Info')
->schema([
]),
Wizard\Step::make('Availability')
->schema([
]),
])
]);
}

protected function handleRegistration(array $data): Business
{
$business = Business::create($data);

$business->employees()->attach(auth()->user());

return $business;
}
}
11 replies
FFilament
Created by Hadi on 8/4/2023 in #❓┊help
Wrap stats widget with a card layout
Thank you, @pboivin ; this is quite useful.
6 replies