You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/app/Option.php

25 lines
432 B

<?php
// this is comment in address
namespace App;
use Illuminate\Database\Eloquent\Model;
class Option extends Model
{
protected $fillable = ['name', 'slug', 'parent_id', 'price'];
public $timestamps = false;
public function business_items()
{
return $this->belongsToMany('App\BusinessItem');
}
public function values()
{
return $this->hasMany('App\Option', 'parent_id');
}
}