Download app/Models/SiteSetting.php from ken1402/myiptv: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/spaces/ken1402/myiptv/resolve/main/app/Models/SiteSetting.php
- Command line
-
hf download hf://spaces/ken1402/myiptv/app/Models/SiteSetting.php
-
curl -L -o SiteSetting.php https://huggingface.co/spaces/ken1402/myiptv/resolve/main/app/Models/SiteSetting.php
734 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| class SiteSetting extends Model | |
| { | |
| protected $table = 'site_settings'; | |
| protected $fillable = [ | |
| 'storage_mode', | |
| 'local_path', | |
| 'ftp_hostname', | |
| 'ftp_port', | |
| 'ftp_user', | |
| 'ftp_pass', | |
| 'ftp_path', | |
| 'r2_bucket', | |
| 'r2_key', | |
| 'r2_secret', | |
| 'r2_endpoint', | |
| 'gdrive_client_id', | |
| 'gdrive_client_secret', | |
| 'gdrive_redirect_uri', | |
| 'gdrive_shared_drive_id', | |
| 'gdrive_mode' | |
| ]; | |
| protected $casts = [ | |
| 'ftp_port' => 'integer', | |
| ]; | |
| public static function getSettings() | |
| { | |
| return static::firstOrCreate(['id' => 1]); | |
| } | |
| } | |