lasthourcloud/app/Livewire/Storage/Show.php

25 lines
450 B
PHP
Raw Permalink Normal View History

2024-04-26 12:09:54 +00:00
<?php
namespace App\Livewire\Storage;
use App\Models\S3Storage;
use Livewire\Component;
class Show extends Component
{
public $storage = null;
2024-06-10 20:43:34 +00:00
2024-04-26 12:09:54 +00:00
public function mount()
{
$this->storage = S3Storage::ownedByCurrentTeam()->whereUuid(request()->storage_uuid)->first();
2024-06-10 20:43:34 +00:00
if (! $this->storage) {
2024-04-26 12:09:54 +00:00
abort(404);
}
}
2024-06-10 20:43:34 +00:00
2024-04-26 12:09:54 +00:00
public function render()
{
return view('livewire.storage.show');
}
}