rename models and associates, isolate botanic with shop

This commit is contained in:
Ludovic CANDELLIER
2020-04-21 00:09:32 +02:00
parent c80b0f1edf
commit 4ad1f18310
234 changed files with 13899 additions and 3230 deletions

View File

@@ -4,12 +4,17 @@ namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
use Rinvex\Categories\Traits\Categorizable,
use Rinvex\Categories\Traits\Categorizable;
class Section extends Model
{
use Categorizable;
protected $guarded = ['id'];
protected $table = 'shop_sections';
public function Category()
{
return $this->hasMany('App\Models\Category');
}
public function Products()
{