lo tengo como en el video pero me sigue saliendo este error:
FatalErrorException in Order.php line 24:
FatalErrorException in Order.php line 24:
Class 'App\Mail\OrderUpdated' not found
la linea que hace referencia es esta:
public function sendUpdateMail(){
Mail::to("[email protected]")->send( new OrderUpdated($this));
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Mail;
use App\Mail\OrderCreated;
use App\Mail\OrderUpdated;
class Order extends Model
{
protected $fillable = ['recipient_name', 'line1', 'line2', 'city', 'country_code', 'state', 'postal_code', 'email', 'shopping_cart_id', 'status', 'total', 'guide_number'];
public function sendMail(){
Mail::to("[email protected]")->send( new OrderCreated($this));
}
public function sendUpdateMail(){
Mail::to("[email protected]")->send( new OrderUpdated($this));
}
public function sendUpdateMail(){
Mail::to("[email protected]")->send( new OrderUpdated($this));
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Mail;
use App\Mail\OrderCreated;
use App\Mail\OrderUpdated;
class Order extends Model
{
protected $fillable = ['recipient_name', 'line1', 'line2', 'city', 'country_code', 'state', 'postal_code', 'email', 'shopping_cart_id', 'status', 'total', 'guide_number'];
public function sendMail(){
Mail::to("[email protected]")->send( new OrderCreated($this));
}
public function sendUpdateMail(){
Mail::to("[email protected]")->send( new OrderUpdated($this));
}