Shell B4ckd00r
Current Dir :
/
home
/
u789730693
/
domains
/
piorasplash.com
/
public_html
/
app
/
Models
/
Home
Upload
Create Dir
Create File
Curl
Current File : /home/u789730693/domains/piorasplash.com/public_html/app/Models/State.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class State extends Model { use HasFactory; protected $table = "states"; protected $fillable = ["name", "country_id", "status"]; protected $casts = [ 'id' => 'integer', 'name' => 'string', 'country_id'=> 'integer', 'status' => 'integer' ]; public function country(){ return $this->belongsTo(Country::class); } public function cities(){ return $this->hasMany(City::class); } }
v.01