阶段更新
This commit is contained in:
@@ -6,10 +6,8 @@ use App\Models\Traits\HasCovers;
|
||||
use Encore\Admin\Traits\AdminBuilder;
|
||||
use Encore\Admin\Traits\ModelTree;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class Category extends Model
|
||||
{
|
||||
@@ -114,8 +112,6 @@ class Category extends Model
|
||||
public function getDescriptionHtmlAttribute(): string
|
||||
{
|
||||
return str_replace("\n", "</br>", $this->description);
|
||||
|
||||
return Str::replaceArray('\n', ['</br>'], $this->description);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user