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

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 84

  • @Scrover_
    @Scrover_ Год назад +1

    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 !

  • @kanhu111
    @kanhu111 Год назад +1

    You are supper coder sir.

  • @ahmaddimasyqi7753
    @ahmaddimasyqi7753 10 месяцев назад +1

    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?

  •  Год назад +1

    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

    • @errorsolutioncode
      @errorsolutioncode  Год назад +1

      Thank you :)

    • @ImranKhan-y8f3n
      @ImranKhan-y8f3n Год назад

      ​@@errorsolutioncode save the changes in .env file.

    • @kelvink.f.dennis4209
      @kelvink.f.dennis4209 7 месяцев назад

      I try php artisan cache:clear
      and php artisan config:clear

    • @kelvink.f.dennis4209
      @kelvink.f.dennis4209 7 месяцев назад

      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.

  • @kelvink.f.dennis4209
    @kelvink.f.dennis4209 7 месяцев назад +1

    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

    • @errorsolutioncode
      @errorsolutioncode  7 месяцев назад

      Please check again video

    • @sakhilathami5857
      @sakhilathami5857 6 месяцев назад

      I am finding the same problem rightnow. Did you get it right afterwards?

    • @bcpodcast207
      @bcpodcast207 4 месяца назад

      incase you got a solution please share am having the same issue

  • @Sub-lb7uq
    @Sub-lb7uq Год назад +1

    What code helper do you use for Studio Code?

  • @GayatriKashyap-y4m
    @GayatriKashyap-y4m Год назад +1

    when I click forgot button it's showing null in App\Http\Controllers\Authcontroller. php:77

  • @Sub-lb7uq
    @Sub-lb7uq Год назад +1

    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 Год назад +1

    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 ")"

  • @Mohamed-Deekh
    @Mohamed-Deekh Год назад +1

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

    • @Mohamed-Deekh
      @Mohamed-Deekh Год назад +1

      $user->password = Hash::make($request->password); this the error

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      Please check again video so 100% get solution

    • @rasaqabdulfatai180
      @rasaqabdulfatai180 Год назад

      have you gotten a solution if yes please share

  • @fahimexpo-anwar7911
    @fahimexpo-anwar7911 Год назад +1

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

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      are you made smtp connection inside env file?

    • @fahimexpo-anwar7911
      @fahimexpo-anwar7911 Год назад +1

      @@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

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      okay bro

  • @AJGhafoor
    @AJGhafoor 10 месяцев назад +1

    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.".

    • @errorsolutioncode
      @errorsolutioncode  10 месяцев назад

      please check step by step video

    • @decodeco9037
      @decodeco9037 9 месяцев назад

      same on my code. have you fixed that..?

  • @ImranKhan-y8f3n
    @ImranKhan-y8f3n Год назад +1

    why i am not seeing the success message. its invisible

  • @emmanuelvillanueva1194
    @emmanuelvillanueva1194 8 месяцев назад +1

    "Trying to access array offset on value of type null" fix it please

    • @errorsolutioncode
      @errorsolutioncode  8 месяцев назад

      make it always condition bro

    • @bcpodcast207
      @bcpodcast207 4 месяца назад

      hello... did you manage to fix this error

    • @bcpodcast207
      @bcpodcast207 4 месяца назад

      please share if you managed

  • @kanchanabatawalaict1307
    @kanchanabatawalaict1307 Год назад +1

    SQLSTATE[42S22]: Column not found: 1054 Unknown column 'email=' in 'where clause'
    can you help the solve this error?

    • @kanchanabatawalaict1307
      @kanchanabatawalaict1307 Год назад

      Can you share your contact number please.I want to solve this error.

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      Please check your database connection.

    • @kanchanabatawalaict1307
      @kanchanabatawalaict1307 Год назад

      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}"

    • @kanchanabatawalaict1307
      @kanchanabatawalaict1307 Год назад

      Please help me to solve this error.

    • @WebcreateSite
      @WebcreateSite Год назад

      @@kanchanabatawalaict1307 'email, '=' but this method is not optimized

  • @aemonzaidi
    @aemonzaidi Год назад

    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.

  • @fahimexpo-anwar7911
    @fahimexpo-anwar7911 Год назад +1

    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

  • @AnimeEscapism
    @AnimeEscapism Год назад +1

    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.');
    }```

  • @ImranKhan-y8f3n
    @ImranKhan-y8f3n Год назад +1

    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

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      Please check watch again video so 100% get solution

    • @fahimexpo-anwar7911
      @fahimexpo-anwar7911 Год назад

      @@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'

  • @fahimexpo-anwar7911
    @fahimexpo-anwar7911 Год назад

    @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].

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      @component('mail::button', ['url' => url('reset/'.$user->remeber_token)])
      Reset Your Password
      @endcomponent
      Are you do not add "." you can check my code above

    • @fahimexpo-anwar7911
      @fahimexpo-anwar7911 Год назад

      @@errorsolutioncode BROTHER ADDED "." AND "," BOTH R ERROR

    • @fahimexpo-anwar7911
      @fahimexpo-anwar7911 Год назад

      @@errorsolutioncodeadded ur code and same error

  • @mirazh8216
    @mirazh8216 Год назад +1

    404 problem please help

  • @Sub-lb7uq
    @Sub-lb7uq Год назад +1

    Ok looks like I was missing a .

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      Please check again bro 100% get solution.

    • @Sub-lb7uq
      @Sub-lb7uq Год назад

      @@errorsolutioncode sometimes the code is out of focus cannot see the code properly

  • @amalyedhu5706
    @amalyedhu5706 Год назад +1

    Skipped this

  • @fahimexpo-anwar7911
    @fahimexpo-anwar7911 Год назад +1

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

    • @errorsolutioncode
      @errorsolutioncode  Год назад +1

      Check again video so 100% get solution.

    • @fahimexpo-anwar7911
      @fahimexpo-anwar7911 Год назад

      @@errorsolutioncode No hint path defined for [mail].
      this error showing

    • @fahimexpo-anwar7911
      @fahimexpo-anwar7911 Год назад +1

      can we do this in any other way?

    • @errorsolutioncode
      @errorsolutioncode  Год назад

      are you made smtp connection inside env file?

    • @errorsolutioncode
      @errorsolutioncode  Год назад +1

      @component('mail::button', ['url' => url('reset/'.$user->remeber_token)])
      Reset Your Password
      @endcomponent
      Are you do not add "." you can check my code above