File: /var/www/javago-portal-updates/app/Models/CafeManagement.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CafeManagement extends Model
{
use HasFactory;
protected $table = 'cafe_management';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = true;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'cafe_id',
'coffee_origin',
'coffee_roast',
'coffee_origin_country',
'speciallity_coffee',
'click_and_collect',
'max_orders_click_collect',
];
public function cafe()
{
return $this->belongsTo(Cafe::class);
}
}