mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 16:44:03 +00:00
Fixed Link command for Laravel v6, added StorageLink Events, more StorageLink tests, added RemoveStorageSymlinks Job, added Storage Jobs to TenancyServiceProvider stub, renamed misleading config example.
This commit is contained in:
parent
717b834c51
commit
5ed5aea6d6
11 changed files with 253 additions and 15 deletions
|
|
@ -12,6 +12,8 @@ use Illuminate\Queue\InteractsWithQueue;
|
|||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Stancl\Tenancy\Contracts\Tenant;
|
||||
use Stancl\Tenancy\Events\CreatingStorageSymlink;
|
||||
use Stancl\Tenancy\Events\StorageSymlinkCreated;
|
||||
|
||||
class CreateStorageSymlinks implements ShouldQueue
|
||||
{
|
||||
|
|
@ -39,8 +41,12 @@ class CreateStorageSymlinks implements ShouldQueue
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
event(new CreatingStorageSymlink($this->tenant));
|
||||
|
||||
Artisan::call('tenants:link', [
|
||||
'--tenants' => [$this->tenant->getTenantKey()],
|
||||
]);
|
||||
|
||||
event(new StorageSymlinkCreated($this->tenant));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue