I am new to laravel, I have a little difficulty. Is giving this error does anyone know how to fix?
<?php
namespace App\Events;
use App\Models\Order;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class OrderChangedEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* @var Order
*/
public $order;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Order $order)
{
//
$this->order = $order;
}
}
"Argument 1 passed to App\Events\OrderChangedEvent::__construct() must be an instance of App\Models\Order, string given, called in /home/delivery/public_html/lar ▶"