feat: add Settings models for Location, ProjectSetting, UrgencyLevel

This commit is contained in:
ghassan committed 2026-05-24 09:48:31 +03:00
1 parent c70dde9b1b
commit f8dc7f6d1c
3 files changed
+63

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Models\Settings;
use Illuminate\Database\Eloquent\Model;
class ProjectSetting extends Model
{
protected $table = 'settings_projects';
protected $fillable = ['name', 'is_active'];
protected $casts = ['is_active' => 'boolean'];
public function scopeActive($query)
{
return $query->where('is_active', true);
}
}