File manager changes:

- Modify storage driver name and location
- Add option to select patchline
- Add option to mark file for delete
- Add option to delete file from the server
- Small UI adjustments to new added options
This commit is contained in:
Patrik Leifert
2024-06-08 21:49:14 +02:00
parent b821b97944
commit 93046eea62
9 changed files with 194 additions and 59 deletions

View File

@@ -2,6 +2,8 @@
namespace App\Models;
use App\Enums\Launcher\FileAction;
use App\Enums\Launcher\Patchline;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
@@ -11,4 +13,14 @@
class GameFile extends Model
{
use HasFactory;
/**
* The attributes that should be cast.
*
* @var array
*/
protected $casts = [
'patchline' => Patchline::class,
'action' => FileAction::class,
];
}