⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
hospital.dev-unit.com
/
app
/
Models
/
View File Name :
RadiologyCategory.php
<?php namespace App\Models; use App\Traits\PopulateTenantID; use Illuminate\Database\Eloquent\Model; use Stancl\Tenancy\Database\Concerns\BelongsToTenant; /** * Class RadiologyCategory * * @version April 11, 2020, 7:08 am UTC * * @property string name * @property int $id * @property string $name * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * * @method static \Illuminate\Database\Eloquent\Builder|RadiologyCategory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|RadiologyCategory newQuery() * @method static \Illuminate\Database\Eloquent\Builder|RadiologyCategory query() * @method static \Illuminate\Database\Eloquent\Builder|RadiologyCategory whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyCategory whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyCategory whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyCategory whereUpdatedAt($value) * * @mixin \Eloquent */ class RadiologyCategory extends Model { use BelongsToTenant, PopulateTenantID; public $table = 'radiology_categories'; public $fillable = [ 'name', ]; /** * Validation rules * * @var array */ public static $rules = [ 'name' => 'required|is_unique:radiology_categories,name', ]; /** * Get the attributes that should be cast. * * @return array<string, string> */ protected function casts(): array { return [ 'id' => 'integer', 'name' => 'string', ]; } }