cleaning day
This commit is contained in:
@@ -4,6 +4,8 @@ namespace App\Models\Shop;
|
||||
|
||||
use App\Traits\Model\Imageable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Kirschbaum\PowerJoins\PowerJoins;
|
||||
use Rinvex\Tags\Traits\Taggable;
|
||||
@@ -23,12 +25,12 @@ class Producer extends Model implements HasMedia
|
||||
|
||||
}
|
||||
|
||||
public function Merchandises()
|
||||
public function Merchandises(): HasMany
|
||||
{
|
||||
return $this->hasMany(Merchandise::class);
|
||||
}
|
||||
|
||||
public function tags()
|
||||
public function tags(): MorphToMany
|
||||
{
|
||||
return $this->morphToMany(Tag::class, 'taggable');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user