I faced strange problem , i want to get data from my model but i cannot do this , my other models work fine but one of them return empty array In the event that table has data , here is my model :
<?php
namespace App\Hotels;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Hotel extends Model
{
use SoftDeletes;
protected $table = 'hotels';
protected $fillable = [
'city_id',
'title',
'star',
'lat',
'lng',
'phone',
'location',
'address',
'description',
];
public $timestamps = true;
}
i use Hotel::all() to get data but the result is :
Collection {#434
#items: []
}
please help me to find out my problem , other models work perfect but this one not work.