This commit is contained in:
2026-08-15 12:07:00 +03:30
commit d8b0992e51
63 changed files with 11839 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class File
*
* @property int $id
* @property string $name
* @property string $extenion
* @property int $size
* @property string $original_name
* @property string $path
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property Collection|Tour[] $tours
* @property Collection|User[] $users
*
* @package App\Models
*/
class File extends Model
{
protected $table = 'files';
protected $casts = [
'size' => 'int'
];
protected $fillable = [
'name',
'extenion',
'size',
'original_name',
'path'
];
public function tours()
{
return $this->hasMany(Tour::class);
}
public function users()
{
return $this->hasMany(User::class);
}
}