When using Livewire in a multisite setup the current site gets lost between requests. This seems a common issue so I thought it could be nice to have a solution directly in the addon.
Usage:
<?php
namespace App\Livewire;
class MyComponent extends Component
{
use \Jonassiewertsen\Livewire\RestoreCurrentSite;
}
When using Livewire in a multisite setup the current site gets lost between requests. This seems a common issue so I thought it could be nice to have a solution directly in the addon.
Usage: