Current File : //home/tradevaly/demo.tradevaly.com.bd/app/Models/HomeAdvertisePosition.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class HomeAdvertisePosition extends Model
{
    use HasFactory;

    protected $fillable = [
        'created_user_id', 'modified_user_id', 'deleted_user_id', 'name', 'status', 'updated_at'
    ];


    protected function getHomeAddPosition($conditions  = [])
    {   
        $data = HomeAdvertisePosition::where('status', 1)->pluck('name', 'id')->toArray();

        return $data;
    }
}