mr_vjchauhan
mr_vjchauhan
FFilament
Created by ZamboDev on 5/22/2024 in #❓┊help
After Create Docente, Create User
"Did you try using this static method when the teacher is created? It automatically triggers:
// Teacher Model
protected static function boot()
{
parent::boot();

static::created(function ($teacher) {
$user = new User();
$user->name = $teacher->name;
$user->email = $teacher->email;
$user->password = Hash::make('default_password'); // Make sure to set a secure default password or prompt for one
$user->save();
});
}
// Teacher Model
protected static function boot()
{
parent::boot();

static::created(function ($teacher) {
$user = new User();
$user->name = $teacher->name;
$user->email = $teacher->email;
$user->password = Hash::make('default_password'); // Make sure to set a secure default password or prompt for one
$user->save();
});
}
Why don't you first create the user and then assign this user to the teacher role?" Maybe I'm wrong
3 replies
FFilament
Created by Nikos Koukos on 5/22/2024 in #❓┊help
Date Picker
No description
4 replies
FFilament
Created by Alnuaimi on 5/16/2024 in #❓┊help
My app Very slow !Why?
If your widget get slow so use this code protected static ?string $pollingInterval = '10s'; protected static bool $isLazy = true;
37 replies
FFilament
Created by mr_vjchauhan on 5/14/2024 in #❓┊help
Issue with $this->form->getState() for Previewing Resume
@Leandro Ferreira thanks its $state->getRealPath()
13 replies
FFilament
Created by mr_vjchauhan on 5/14/2024 in #❓┊help
Issue with $this->form->getState() for Previewing Resume
No description
13 replies
FFilament
Created by Sidem on 5/15/2024 in #❓┊help
wizard with many steps
No description
6 replies
FFilament
Created by Sidem on 5/15/2024 in #❓┊help
wizard with many steps
6 replies
FFilament
Created by mr_vjchauhan on 5/14/2024 in #❓┊help
Issue with $this->form->getState() for Previewing Resume
which one is good for preview data with fileupload $this->form->getRawState() or $this->form->getState()
13 replies
FFilament
Created by mr_vjchauhan on 5/14/2024 in #❓┊help
Issue with $this->form->getState() for Previewing Resume
ok sorry @Leandro Ferreira did you read this https://www.answeroverflow.com/m/1152352566525566996 I have similar issue
13 replies
FFilament
Created by mr_vjchauhan on 5/14/2024 in #❓┊help
Issue with $this->form->getState() for Previewing Resume
No description
13 replies
FFilament
Created by mr_vjchauhan on 5/14/2024 in #❓┊help
Issue with $this->form->getState() for Previewing Resume
No description
13 replies