title: Setting a custom user verification link issue in laravel
body: <p>I have been trying to send my users a custom verification email in laravel. </p>
  
  <p>First I run this</p>
  
  <pre><code>php artisan make:notification SendRegisterEmailNotifcation
  </code></pre>
  
  <p>This has created a file called, <code>SendRegisterEmailNotifcation.php</code> inside my <code>App/Notifications</code>.</p>
  
  <p>Then Inside my user controller's store method, I called that method after user insertion done. </p>
  
  <p>Following is my store function,</p>
  
  <pre><code>public function store(Request $request)
      {
          request()-&gt;validate([
              'name' =&gt; ['required', 'alpha','min:2', 'max:255'],
              'last_name' =&gt; ['required', 'alpha','min:2', 'max:255'],
              'email' =&gt; ['required','email', 'max:255', 'unique:users'],
              'password' =&gt; ['required', 'string', 'min:12', 'confirmed','regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&amp;])[A-Za-z\d@$!%*?&amp;]{12,}$/'],
              'mobile'=&gt;['required', 'regex:/^\+[0-9]?()[0-9](\s|\S)(\d[0-9]{8})$/','numeric','min:9'],
              'username'=&gt;['required', 'string', 'min:4', 'max:10', 'unique:users'],   
              'roles'=&gt;['required'],
              'user_roles'=&gt;['required'],
          ]);
  
          //Customer::create($request-&gt;all());
  
          $input = $request-&gt;all();
          $input['password'] = Hash::make($input['password']);
  
          $user = User::create($input);
          $user-&gt;assignRole($request-&gt;input('roles'));
  
          //event(new Registered($user));
          $user-&gt;notify(new SendRegisterMailNotification());
  
          return redirect()-&gt;route('customers.index')
                          -&gt;with('success','Customer created successfully. Verification email has been sent to user email.  ');
      }
  </code></pre>
  
  <p>And this is my <code>SendRegisterMailNotification.php</code></p>
  
  <pre><code>&lt;?php
  
  namespace App\Notifications;
  
  use Illuminate\Bus\Queueable;
  use Illuminate\Contracts\Queue\ShouldQueue;
  use Illuminate\Notifications\Messages\MailMessage;
  use Illuminate\Notifications\Notification;
  
  class SendRegisterMailNotification extends Notification
  {
      use Queueable;
  
      /**
       * Create a new notification instance.
       *
       * @return void
       */
      public function __construct()
      {
          //
      }
  
      /**
       * Get the notification's delivery channels.
       *
       * @param  mixed  $notifiable
       * @return array
       */
      public function via($notifiable)
      {
          return ['mail'];
      }
  
      /**
       * Get the mail representation of the notification.
       *
       * @param  mixed  $notifiable
       * @return \Illuminate\Notifications\Messages\MailMessage
       */
      public function toMail($notifiable)
      {
          return (new MailMessage)
                      -&gt;line('The introduction to the notification.')
                      -&gt;action('Click Here to Activate', url('/'))
                      -&gt;line('Thank you for using our application!');
      }
  
      /**
       * Get the array representation of the notification.
       *
       * @param  mixed  $notifiable
       * @return array
       */
      public function toArray($notifiable)
      {
          return [
              //
          ];
      }
  }
  </code></pre>
  
  <p>Now this process works well, newly created users are receiving their emails. </p>
  
  <p>But the issue is</p>
  
  <p>Normally in laravel activation link has a certain format and once the user hits on the button user's account get activated and store verified date time in the user table, also the link expires in 60 minutes..</p>
  
  <p>Sample verification link,</p>
  
  <pre><code>http://test.site/email/verify/22/3b7c357f630a62cb2bac0e18a47610c245962182?expires=1588247915&amp;signature=7e6869deb1b6b700dcd2a49b2ec66ae32fb0b6dc99aa0405095e9844962bb53c
  </code></pre>
  
  <p>But in my case I am struggling to set that activation link and the process properly, How can I do that using the above customized email?  </p>