Current File : //proc/thread-self/root/proc/self/root/home/tradevaly/demo.tradevaly.com.bd/app/Models/City.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class City extends Model
{
use HasFactory;
use SoftDeletes;
protected $fillable = [
'created_user_id', 'modified_user_id', 'deleted_user_id', 'name', 'country_id', 'status', 'updated_at'
];
protected function getCity($conditions = [])
{
$data = City::where('status', 1)->pluck('name', 'id')->toArray();
return $data;
}
}