2021年3月14日星期日

Argument 1 passed to UxWeb\SweetAlert\SweetAlertNotifier::__construct()

This is the error message that I get. I need someone who can help me run this code. This code was working 100% earlier.

In SweetAlertNotifier.php line 37:

  Argument 1 passed to UxWeb\SweetAlert\SweetAlertNotifier::__construct() must be an instance of     UxWeb\SweetAlert\SessionStore,    instance of Illuminate\Foundation\Application given, called in     \vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php on line 208  

This code I have not changed

/**   * Create a new SweetAlertNotifier instance.   *   * @param \UxWeb\SweetAlert\SessionStore $session   */  public function __construct(SessionStore $session)  {      $this->session = $session;        $this->setDefaultConfig();  }    /**   * Sets all default config options for an alert.   *   * @return void   */  protected function setDefaultConfig()  {      $this->setConfig([          'timer' => config('sweet-alert.autoclose'),          'text' => '',          'buttons' => [              'cancel' => false,              'confirm' => false,          ],      ]);  }  
https://stackoverflow.com/questions/66613714/argument-1-passed-to-uxweb-sweetalert-sweetalertnotifier-construct March 13, 2021 at 08:49PM

没有评论:

发表评论