reupload
This commit is contained in:
40
app/Models/System/Settings/Settings.php
Normal file
40
app/Models/System/Settings/Settings.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\System\Settings;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Spatie\Translatable\HasTranslations;
|
||||
|
||||
class Settings extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasTranslations;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'key',
|
||||
'value',
|
||||
'display_name',
|
||||
'locked',
|
||||
];
|
||||
|
||||
/**
|
||||
* Translatable fields
|
||||
*
|
||||
* @var array<string>
|
||||
*/
|
||||
public $translatable = ['display_name'];
|
||||
|
||||
/**
|
||||
* Sms token
|
||||
*/
|
||||
public static function smsToken(): string
|
||||
{
|
||||
return config('sms.api.token');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user