#10- Forgot Password Email with Reset Link in Laravel 10 | School Management System | PHP Laravel 10

#10- Forgot Password Email with Reset Link in Laravel 10 | School Management System | PHP Laravel 10

Error Solution

1 год назад

8,962 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@mirazh8216
@mirazh8216 - 11.11.2023 08:08

404 problem please help

Ответить
@amalyedhu5706
@amalyedhu5706 - 01.10.2023 06:10

Skipped this

Ответить
@Scrover_
@Scrover_ - 24.09.2023 20:32

Hello sir !
I manage to get some errors following your code but nothing that ChatGPT can't fix.
Thanks for all your videos, keep up the good work !

Ответить
@aemonzaidi
@aemonzaidi - 31.08.2023 00:33

public function Reset($remember_token)
{
$user = User::getTokenSingle($remember_token);
if(!empty($user))
{
$data['user'] = $user;
return view('auth.reset', $data);
}
else
{
abort(404);
}
}

Stuck here. It's generating token for reset, but always says 404 | Not Found. I've even tried with removing the if condition.

Ответить
@hridoybiswas1062
@hridoybiswas1062 - 24.08.2023 08:35

Failed to authenticate on SMTP server with username "09d1b5e3482a51" using the following authenticators: "CRAM-MD5", "LOGIN", "PLAIN". Authenticator "CRAM-MD5" returned "Expected response code "235" but got code "535", with message "535 5.7.0 Invalid credentials".". Authenticator "LOGIN" returned "Expected response code "334" but got empty code.". Authenticator "PLAIN" returned "Expected response code "235" but got empty code.".

"How to Solved"

Ответить
@freecitylifestyle8888
@freecitylifestyle8888 - 12.08.2023 00:53

i try to alrert user that their password is too short but the error message is not displaying
``` $validator = Validator::make($request->all(), [
'email' => 'required|email',
'password' => 'required|min:12|max:255',
]);
if ($validator->fails()) {
return redirect()->back()->withErrors($validator)->withInput();
}

// Check if password is at least 12 characters long
if (strlen($request->password) < 12) {
return redirect()->back()->with('error', 'Your password must be at least 12 characters long.');
}```

Ответить
@kanhu111
@kanhu111 - 02.08.2023 08:52

You are supper coder sir.

Ответить
@fahimexpo-anwar7911
@fahimexpo-anwar7911 - 13.07.2023 07:14

alhamdulillah !! everything has been done successfully !!

1. in terminal...command
php artisan make:mail ResetPasswordMail --markdown=emails.password_reset
2.put it view file....
<x-mail::message>
{{ $user->name }}




<x-mail::button :url="url('reset/' . $user->remember_token)">
Reset password link
</x-mail::button>

Thanks,<br>
{{ config('app.name') }}
</x-mail::message>



-----
3. AuthController change it..
Mail::to($user->email)->send( new ResetPasswordMail($user));
Contact me if you need anything

Ответить
@fahimexpo-anwar7911
@fahimexpo-anwar7911 - 12.07.2023 15:39

@component('mail::button', ['url' => url('reset/' $user->remeber_token)])

Reset Your Password

@endcomponent

------------------
InvalidArgumentException
PHP 8.1.17
10.14.1
No hint path defined for [mail].

Ответить
@fahimexpo-anwar7911
@fahimexpo-anwar7911 - 12.07.2023 14:17

can we do this in any other way?
pls share .. will help us

Ответить
@fahimexpo-anwar7911
@fahimexpo-anwar7911 - 12.07.2023 12:45

not working ... please help me
@component('mail::button', ['url' => url('reset/' $user->remember_token)])
Reset Your Password
@endcomponent

Ответить
@user-uw2xs5og5c
@user-uw2xs5og5c - 08.07.2023 13:58

class DashboardController extends Controller
{
function dashboard()
{
$data['header_title'] ='Dashboard';

if(Auth::user()->user_type == 1)
{
return view('admin.dashboard', $data);
}
else if(Auth::user()->user_type == 2)
{
return view('teacher.dashboard' , $data);
}
else if(Auth::user()->user_type == 3)
{
return view('student.dashboard' , $data);
}
else(Auth::user()->user_type == 4)

{
return view('parent.dashboard' , $data);
}
}
}

why it give error

Ответить
@user-uw2xs5og5c
@user-uw2xs5og5c - 06.07.2023 12:43

why i am not seeing the success message. its invisible

Ответить
@MohamedAhmed-sb7tu
@MohamedAhmed-sb7tu - 31.05.2023 08:53

when i click the reset button, Attempt to assign property "password" on null

Ответить
@kanchanabatawalaict1307
@kanchanabatawalaict1307 - 25.05.2023 12:18

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email=' in 'where clause'

can you help the solve this error?

Ответить
@FevziDoganay
@FevziDoganay - 20.05.2023 12:31

Hello. I am getting this error after clicking the submit button. can you help me please
Connection could not be established with host "mailpit:1025": stream_socket_client(): php_network_getaddresses: getaddrinfo for mailpit failed: No such host known.

Ответить
@Sub-lb7uq
@Sub-lb7uq - 16.05.2023 16:14

When I click my reset button in the email, I don't see a token only /reset, this is the code I have for the forgot.blade file @component('mail::button', ['url' => url('reset/' .$user->remeber_token)])

Ответить
@Sub-lb7uq
@Sub-lb7uq - 16.05.2023 15:35

What code helper do you use for Studio Code?

Ответить
@Sub-lb7uq
@Sub-lb7uq - 16.05.2023 15:17

Ok looks like I was missing a .

Ответить
@Sub-lb7uq
@Sub-lb7uq - 16.05.2023 15:08

The video is bury and difficult to see the code sometimes @component('mail::button', ['url' => url('reset/' $user->remeber_token)]) error syntax error, unexpected variable "$user", expecting ")"

Ответить