![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/app/Models/ |
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Support\Carbon; /** * Class Country * * @package App\Models * @version July 29, 2021, 10:49 am UTC * @property string $name * @property string $short_code * @property int $id * @property string|null $phone_code * @property Carbon|null $created_at * @property Carbon|null $updated_at * @property string|null $deleted_at * @method static \Database\Factories\CountryFactory factory(...$parameters) * @method static \Illuminate\Database\Eloquent\Builder|Country newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Country newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Country query() * @method static \Illuminate\Database\Eloquent\Builder|Country whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Country whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Country whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Country whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|Country wherePhoneCode($value) * @method static \Illuminate\Database\Eloquent\Builder|Country whereShortCode($value) * @method static \Illuminate\Database\Eloquent\Builder|Country whereUpdatedAt($value) * @mixin Model */ class Country extends Model { use HasFactory; protected $table = 'countries'; public $fillable = [ 'name', 'short_code', ]; /** * The attributes that should be casted to native types. * * @var array */ protected $casts = [ 'name' => 'string', 'short_code' => 'string', ]; /** * Validation rules * * @var array */ public static $rules = [ 'name' => 'required|unique:countries,name', ]; }