rhysleesdev
rhysleesdev
FFilament
Created by jjo63 on 4/17/2025 in #❓┊help
User maintenance flow - default in Filament
12 replies
FFilament
Created by jjo63 on 4/17/2025 in #❓┊help
User maintenance flow - default in Filament
@jjo63 filament ships with a user profile page https://filamentphp.com/docs/3.x/panels/users#authentication-features enable it with ->profile() in the Panels Provider
12 replies
FFilament
Created by jjo63 on 4/17/2025 in #❓┊help
User maintenance flow - default in Filament
just remove the password field from the form
12 replies
FFilament
Created by kagchi on 4/18/2025 in #❓┊help
Rich editor upload stuck
@kagchi what about your laravel.log?
7 replies
FFilament
Created by jjo63 on 4/17/2025 in #❓┊help
User maintenance flow - default in Filament
You could also create this yourself quite easily without the package
12 replies
FFilament
Created by jjo63 on 4/17/2025 in #❓┊help
User maintenance flow - default in Filament
You could use a package like this. it creates a user with a random password and sends them an invite notification with a link to reset the password https://filamentphp.com/plugins/tapp-network-invites
12 replies
FFilament
Created by Florian on 4/18/2025 in #❓┊help
i am trying to add a Copy function to my table but i am not sure why it wont work
are there any errors? you can also try adding:
->copyableState(fn ($record): string => (string) $record->id)
->copyableState(fn ($record): string => (string) $record->id)
13 replies
FFilament
Created by pablopetr on 4/9/2025 in #❓┊help
Auto save for forms
yup sorry, didnt mention it
8 replies
FFilament
Created by pablopetr on 4/9/2025 in #❓┊help
Auto save for forms
@pablopetr you can add the following method to the Pages/Edit{Resource}.php
public function updated(string $propertyName): void
{
$this->save(
shouldRedirect: false,
shouldSendSavedNotification: false
);
}
public function updated(string $propertyName): void
{
$this->save(
shouldRedirect: false,
shouldSendSavedNotification: false
);
}
then add ->live() to the form elements and when they update it will call this method, then save. note the propertyName is passed to the update method, so if you have some other elements you dont want to trigger the save on you can filter them out.
8 replies
FFilament
Created by raheel3031 on 1/28/2025 in #❓┊help
displaying address in filament form
As @Jo said, there is no content method in View, you should use ->view('path.to.blade.view') then define your content in the file https://filamentphp.com/docs/3.x/forms/layout/custom
7 replies
FFilament
Created by Arjen on 1/27/2025 in #❓┊help
Wizard loses $_GET param after next step
I believe you need to use Livewires #[Url] Attribute
use Livewire\Attributes\Url;

class Registration extends Register
{
#[Url]
protected string $type = 'inwoner';

public function mount(): void
{
parent::mount();
}

public function form(Form $form): Form
{
return $form
->schema([
$this->type === 'inwoner' ?
$this->getUserFormComponent() :
$this->getOrganizationFormComponent(),
]);
}
}
use Livewire\Attributes\Url;

class Registration extends Register
{
#[Url]
protected string $type = 'inwoner';

public function mount(): void
{
parent::mount();
}

public function form(Form $form): Form
{
return $form
->schema([
$this->type === 'inwoner' ?
$this->getUserFormComponent() :
$this->getOrganizationFormComponent(),
]);
}
}
5 replies
FFilament
Created by Patrick on 1/23/2025 in #❓┊help
Create record with custom creation date
Don't use the create page, instead create an action that creates the model. then use the edit form page to allow the user to edit. In ModelResource/Pages/ListModels.php
protected function getHeaderActions(): array
{
return [
Action::make('create')
->label('Create')
->color('primary')
->icon('heroicon-o-plus')
->action('createDraft'),
];
}

public function createDraft(): RedirectResponse | Redirector
{
$model = YourModel::create();

return redirect()->to(ModelResource::getUrl(
name: 'edit',
parameters: ['record' => $model],
isAbsolute: true
));
}
protected function getHeaderActions(): array
{
return [
Action::make('create')
->label('Create')
->color('primary')
->icon('heroicon-o-plus')
->action('createDraft'),
];
}

public function createDraft(): RedirectResponse | Redirector
{
$model = YourModel::create();

return redirect()->to(ModelResource::getUrl(
name: 'edit',
parameters: ['record' => $model],
isAbsolute: true
));
}
9 replies
FFilament
Created by 403gtfo on 1/27/2025 in #❓┊help
Table CSS for Livewire Page outside Filament
No problem 😄 , make sure you mark the post as solved 🙂
12 replies
FFilament
Created by 403gtfo on 1/27/2025 in #❓┊help
Table CSS for Livewire Page outside Filament
12 replies
FFilament
Created by 403gtfo on 1/27/2025 in #❓┊help
Table CSS for Livewire Page outside Filament
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>{{ $title ?? 'Page Title' }}</title>

@filamentStyles
@vite('resources/css/app.css')
</head>

<body>
@yield('title')
@yield('content')

@filamentScripts
@vite('resources/js/app.js')
</body>

</html>
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>{{ $title ?? 'Page Title' }}</title>

@filamentStyles
@vite('resources/css/app.css')
</head>

<body>
@yield('title')
@yield('content')

@filamentScripts
@vite('resources/js/app.js')
</body>

</html>
12 replies
FFilament
Created by 403gtfo on 1/27/2025 in #❓┊help
Table CSS for Livewire Page outside Filament
Can you share the layouts.app file
12 replies
FFilament
Created by qqq on 1/26/2025 in #❓┊help
Registration error
Ensure you have allowed access to the panel on the user model: https://filamentphp.com/docs/3.x/panels/users#authorizing-access-to-the-panel
3 replies
FFilament
Created by 403gtfo on 1/27/2025 in #❓┊help
Table CSS for Livewire Page outside Filament
You should follow all the Installation steps here: https://filamentphp.com/docs/3.x/tables/installation
12 replies