title: Laravel - Trying to get property 'view' of non-object, when sending mail
body: <p>I'm trying to send a validation email to a registering customers email address, but It is giving me the error in question rather than sending the notification email.
  Any help would be fantastic! Struggling here, dont understand where the object is, and the error is unhelpful af.<br>
  I did some die and dumps, and found that the problem is in the build method of the mailable where it sends the email. The email sends, the url is correct, and the account validates, but I get this error when I'm in the process of sending the email, which prevents me from redirecting to a confirmation or log in page after a new user registers.</p>
  
  <p>Thankyou :)</p>
  
  <p>Create user :</p>
  
  <pre class="lang-php prettyprint-override"><code>$validator = Validator::make($request-&gt;all(), [
      'name'     =&gt; ['required', 'alpha_dash', 'string', 'max:25', 'unique:customers'],
      'email'    =&gt; ['required', 'string', 'email', 'max:255', 'unique:customers'],
      'password' =&gt; ['required', 'string', 'min:6', 'confirmed'],
  ]);
  
  if ( $validator-&gt;fails() ) {
      $messages = $validator-&gt;messages();
      return Redirect::back()-&gt;withErrors($validator)-&gt;withInput();
      foreach($errors-&gt;all() as $error) {
          echo $error;
      }
  } elseif ( $validator-&gt;passes() ) {
      $customer = customer::create([
          'name' =&gt; $request['name'],
          'email' =&gt; $request['email'],
          'password' =&gt; Hash::make($request['password']),
          'VerifyToken' =&gt; Str::random(40),
      ]);
  
      $customer-&gt;SendEmailVerificationNotification();
  
      return redirect()-&gt;intended('login/customer');
  }
  </code></pre>
  
  <p>SendEmailVerificationNotifaction:</p>
  
  <pre class="lang-php prettyprint-override"><code>public function toMail($notifiable)
  {
      $verificationUrl = $this-&gt;verificationUrl($notifiable);
  
      if (static::$toMailCallback) {
          return call_user_func(static::$toMailCallback, $notifiable, $verificationUrl);
      }
  
      Mail::to($notifiable-&gt;email)-&gt;send(new validate_email($notifiable-&gt;email));
  }
  
  validate_email mailable:
  
      namespace App\Mail;
  
      use Illuminate\Support\Facades\URL;
      use Illuminate\Bus\Queueable;
      use Illuminate\Mail\Mailable;
      use Illuminate\Queue\SerializesModels;
      use Illuminate\Contracts\Queue\ShouldQueue;
  
      class validate_email extends Mailable
      {
          use Queueable, SerializesModels;
  
  
          public function __construct($data)
          {
              $this-&gt;email = $data;
          }
  
          public function build()
          {
               $url = URL::temporarySignedRoute(
               'verifyCustomer', now()-&gt;addMinutes(100),['email'=&gt;$this-&gt;email]
              );
  
  
              return $this-&gt;from('support@xxxx.com')
                          -&gt;view('auth.mail.validate_email')-&gt;with([
                              'url' =&gt; $url,
                              'email' =&gt; $this-&gt;email
                          ]);
          }
      }
  
  
  
  </code></pre>