Files
hatame.andarza09/app/Models/Province.php
T
hatame 687681744a git add .
git commit "Implement user registration"
2026-08-16 08:52:04 +03:30

37 lines
536 B
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class Province
*
* @property int $id
* @property string $name
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @package App\Models
*/
class Province extends Model
{
protected $table = 'provinces';
public static $snakeAttributes = false;
protected $fillable = [
'name'
];
public function users()
{
return $this->hasMany(User::class);
}
}