LAR_Maintenance/app/Models/Tenant.php

22 lines
365 B
PHP
Raw Permalink Normal View History

2024-07-30 16:13:21 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Tenant extends Model
{
use HasFactory;
protected $fillable = [
'name',
'domain',
];
public function setDomainAttribute($value)
{
$this->attributes['domain'] = strtolower($value);
}
}