HappyToDev
HappyToDev
FFilament
Created by HappyToDev on 2/4/2024 in #❓┊help
Filament Multi-Tenant without Laravel Spark ?
Wow, first thank you for your quick answer. Second I have to punish myself, I red the doc and I didn't see the obvious sub menu... I really didn't see this sub menu. I'm so tired. I’ll go back to my bed 😉
5 replies
FFilament
Created by HappyToDev on 12/11/2023 in #❓┊help
Breeze : How to have an integrated profile page to filament instead using Breeze default one?
Another problem, maybe you can help me, I added passwordReset() on my panel definition
return $panel
->default()
->id('admin')
->path('admin')
->login()
->profile(EditProfile::class)
->registration(Register::class)
->emailVerification()
->passwordReset()
return $panel
->default()
->id('admin')
->path('admin')
->login()
->profile(EditProfile::class)
->registration(Register::class)
->emailVerification()
->passwordReset()
But email has been never received. Any help will be very appreciated. Thanks
5 replies
FFilament
Created by HappyToDev on 12/11/2023 in #❓┊help
Breeze : How to have an integrated profile page to filament instead using Breeze default one?
Ok, I found a way to do what I want :
class EditProfile extends BaseEditProfile
{
public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('username')
->required()
->unique('users', 'username', Auth::user())
->alphaDash()
->rules(['lowercase'])
->maxLength(255),
FileUpload::make('profile_photo_path')
->image()
->avatar()
->imageEditor()
->circleCropper(),
$this->getNameFormComponent(),
$this->getEmailFormComponent(),
$this->getPasswordFormComponent(),
$this->getPasswordConfirmationFormComponent(),
]);
}
}
class EditProfile extends BaseEditProfile
{
public function form(Form $form): Form
{
return $form
->schema([
TextInput::make('username')
->required()
->unique('users', 'username', Auth::user())
->alphaDash()
->rules(['lowercase'])
->maxLength(255),
FileUpload::make('profile_photo_path')
->image()
->avatar()
->imageEditor()
->circleCropper(),
$this->getNameFormComponent(),
$this->getEmailFormComponent(),
$this->getPasswordFormComponent(),
$this->getPasswordConfirmationFormComponent(),
]);
}
}
It works almost correctly. I have an integrated profile page. But... when I use the circleCropper with an image, nothing happened when I click on save. No error in console, nothing. Somebody has an idea ?
5 replies