binshops / laravel-blog

Laravel Blog Package/ Laravel CMS. Easiest way to add a blogging system to your Laravel website. Laravel Blog.

Home Page:https://www.binshops.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in sluggable function

smart0120 opened this issue · comments

I tried to add laravel-blog into my laravel project

Laravel version 8.49.0
laravel-blog version: 8.1.2

but I got this error
Declaration of BinshopsBlog\Models\BinshopsBlogPost::sluggable() must be compatible with Cviebrock\EloquentSluggable\Sluggable::sluggable(): array

I found solution here

I think the solution is to change vendor/binshops/laravel-blog/src/Models/BinshopsBlogPost.php (line 61)

public function sluggable(): array
{
 ... ...
}

I used DO app for server

unfortunately, DO app doesn't support editing package files

@smart0120
thanks for reporting.
We will release your fix soon.
Thanks for your contribution.

@smart0120
the package updated to v8.1.3 version.

The error is fixed to use v8.1.3
Thanks for you response

This error is still present in v9.2.1 it seems