Sorry sir, I want to ask, I entered a different password in the reset form when I reset, why did it work and it shouldn't? is there an error in my code?
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.
Год назад+2
OK, I got it done. If you have the same problem, try the following commands: php artisan cache:clear php artisan config:clear sudo service apache2 restart
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)])
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 ")"
@@errorsolutioncode Yes I have connected it in the same way as I do scientific connection in the portfolio project. You will be glad to hear that I have finished the portfolio project
i am getting error message while i click to forgot button.. Failed to authenticate on SMTP server with username "89f0eea0009c01" 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.".
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.
alhamdulillah !! everything has been done successfully !! 1. in terminal...command php artisan make:mail ResetPasswordMail --markdown=emails.password_reset 2.put it view file.... {{ $user->name }}
Reset password link
Thanks, {{ config('app.name') }} ----- 3. AuthController change it.. Mail::to($user->email)->send( new ResetPasswordMail($user)); Contact me if you need anything
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.'); }```
@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].
@component('mail::button', ['url' => url('reset/'.$user->remeber_token)]) Reset Your Password @endcomponent Are you do not add "." you can check my code above
@component('mail::button', ['url' => url('reset/'.$user->remeber_token)]) Reset Your Password @endcomponent Are you do not add "." you can check my code above
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 !
Thank you :)
You are supper coder sir.
Thank you :)
Sorry sir, I want to ask, I entered a different password in the reset form when I reset, why did it work and it shouldn't? is there an error in my code?
Please check again video
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.
OK, I got it done. If you have the same problem, try the following commands:
php artisan cache:clear
php artisan config:clear
sudo service apache2 restart
Thank you :)
@@errorsolutioncode save the changes in .env file.
I try php artisan cache:clear
and php artisan config:clear
I try php artisan cache:clear
and php artisan config:clear
but it didn't work out for me. please help out on lesson #10.
Hi ES please help me.
this is the error i am geeting on the forgot password: Trying to access array offset on value of type null
Please check again video
I am finding the same problem rightnow. Did you get it right afterwards?
incase you got a solution please share am having the same issue
What code helper do you use for Studio Code?
Subline editor
when I click forgot button it's showing null in App\Http\Controllers\Authcontroller. php:77
Please check again video so 100% get solution
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)])
okay i will check my end
did YOU solve it?
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 ")"
Please check again bro 100% get solution..
when i click the reset button, Attempt to assign property "password" on null
$user->password = Hash::make($request->password); this the error
Please check again video so 100% get solution
have you gotten a solution if yes please share
can we do this in any other way?
pls share .. will help us
are you made smtp connection inside env file?
@@errorsolutioncode Yes I have connected it in the same way as I do scientific connection in the portfolio project. You will be glad to hear that I have finished the portfolio project
okay bro
i am getting error message while i click to forgot button..
Failed to authenticate on SMTP server with username "89f0eea0009c01" 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.".
please check step by step video
same on my code. have you fixed that..?
why i am not seeing the success message. its invisible
Always showing success message pls check again video
"Trying to access array offset on value of type null" fix it please
make it always condition bro
hello... did you manage to fix this error
please share if you managed
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email=' in 'where clause'
can you help the solve this error?
Can you share your contact number please.I want to solve this error.
Please check your database connection.
APP_NAME=student
APP_ENV=local
APP_KEY=base64:CPnhi2KDpVeTZHpgVIW8zvNlB9yNy8YgTPKKs3kfItY=
APP_DEBUG=true
APP_URL=localhost/student.com/
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=student.com
DB_USERNAME=root
DB_PASSWORD=1234
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=dd09388848d03a
MAIL_PASSWORD=a42359567535bd
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="admin@student.com"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
Please help me to solve this error.
@@kanchanabatawalaict1307 'email, '=' but this method is not optimized
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.
Please check again video step by step so 100% get solution.
I have a error same like @aemonzaidi
@@errorsolutioncode please sir resolve it
alhamdulillah !! everything has been done successfully !!
1. in terminal...command
php artisan make:mail ResetPasswordMail --markdown=emails.password_reset
2.put it view file....
{{ $user->name }}
Reset password link
Thanks,
{{ config('app.name') }}
-----
3. AuthController change it..
Mail::to($user->email)->send( new ResetPasswordMail($user));
Contact me if you need anything
okay, Thank you :)
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.');
}```
You need to write code inside view file
Okey thanks
is this error sorted.....because I'm also facing the same issue.
@@prabhupraful3172 yes I follow @errorsolutioncode advice
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
Please check watch again video so 100% get solution
@@errorsolutioncode class DashboardController extends Controller
{
public function dashboard(){
$data['header_title'] = 'Dashboard';
if(Auth::user()->user_type == 'admin'){
return view('backend.admin.dashboard', $data);
}else if(Auth::user()->user_type == 'teacher'){
return view('backend.teacher.dashboard', $data);
}else if(Auth::user()->user_type == 'student'){
return view('backend.student.dashboard', $data);
}
else if(Auth::user()->user_type == 'parent'){
return view('backend.parent.dashboard', $data);
}
}
}
==================
just put it and remove only == 'admin' , copy it =='1'
@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].
@component('mail::button', ['url' => url('reset/'.$user->remeber_token)])
Reset Your Password
@endcomponent
Are you do not add "." you can check my code above
@@errorsolutioncode BROTHER ADDED "." AND "," BOTH R ERROR
@@errorsolutioncodeadded ur code and same error
404 problem please help
please check again video
@@errorsolutioncode I will send you my code
Ok looks like I was missing a .
Please check again bro 100% get solution.
@@errorsolutioncode sometimes the code is out of focus cannot see the code properly
Skipped this
okay
not working ... please help me
@component('mail::button', ['url' => url('reset/' $user->remember_token)])
Reset Your Password
@endcomponent
Check again video so 100% get solution.
@@errorsolutioncode No hint path defined for [mail].
this error showing
can we do this in any other way?
are you made smtp connection inside env file?
@component('mail::button', ['url' => url('reset/'.$user->remeber_token)])
Reset Your Password
@endcomponent
Are you do not add "." you can check my code above