lasthourcloud/app/Livewire/Team/Storage/Show.php

23 lines
452 B
PHP
Raw Normal View History

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