add projet
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class Preferences extends BaseModel
|
||||
{
|
||||
protected $table = 'user_preferences'; // Adjusted to match the table name
|
||||
protected $primaryKey = 'id'; // Primary key of the table
|
||||
|
||||
// Allowed fields to enable mass assignment
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'notification_email',
|
||||
'notification_sms',
|
||||
'theme',
|
||||
'language',
|
||||
'style_color',
|
||||
'menu_color',
|
||||
'menu_custom_bg',
|
||||
'menu_custom_text',
|
||||
'menu_custom_mode',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
// Enable automatic timestamp management if needed
|
||||
public $timestamps = true;
|
||||
const CREATED_AT = 'created_at';
|
||||
const UPDATED_AT = 'updated_at';
|
||||
}
|
||||
Reference in New Issue
Block a user