fix bugs
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Services\App\Seo\SeoDescriptionInterface;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Division extends Model
|
||||
class Division extends Model implements SeoDescriptionInterface
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
@@ -24,4 +25,9 @@ class Division extends Model
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'division_user')->withPivot(['administrativePosition', 'sort', 'service_email', 'service_phone', 'cabinet']);
|
||||
}
|
||||
|
||||
public function getSeoDescription(): array
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user