Code: Select all
Fortify::createUsersUsing(CreateNewUser::class);
Fortify::updateUserProfileInformationUsing(UpdateUserProfileInformation::class);
Code: Select all
interface CreatesNewUsers
{
/**
* Validate and create a newly registered user.
*
* @param array $input
* @return \Illuminate\Foundation\Auth\User
*/
public function create(array $input);
}
Code: Select all
/**
* @method void update(\Illuminate\Foundation\Auth\User $user, array $input)
*/
interface UpdatesUserProfileInformation
{
//
}
< /code>
Warum nicht eine Methodensignatur auf die übliche Weise definieren? So etwas: < /p>
interface UpdatesUserProfileInformation
{
public function update(\Illuminate\Foundation\Auth\User $user, array $input): void;
}