2022-03-05 16:02:12 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2022-05-14 17:21:51 +02:00
|
|
|
use Illuminate\Support\Facades\DB;
|
2022-03-05 16:02:12 +01:00
|
|
|
|
|
|
|
class Settings extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $table = 'settings';
|
2022-03-05 16:58:25 +01:00
|
|
|
|
|
|
|
protected $fillable = ['id', 'show_versions_footer', 'show_servers_public'];
|
2022-05-14 17:21:51 +02:00
|
|
|
|
|
|
|
public static function getSettings()
|
|
|
|
{
|
|
|
|
return DB::table('settings')
|
|
|
|
->where('id', '=', 1)
|
|
|
|
->get();
|
|
|
|
}
|
2022-03-05 16:02:12 +01:00
|
|
|
}
|