I am using spatie/laravel-sluggable package to implement slug for my thread model. Followed through the docs and installed it. As soon as I go to my threads, it throws an error:
syntax error, unexpected 'SlugOptions' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
From the other issue posted regarding this, it seems like it's a php compatible issue(I'm not entirely sure). I checked my php version with different ways and they are all different.
composer.json:
"require": {
"php": "^7.4.5",
.....
}
Via command line (php -v):
PHP 7.4.8 (cli) (built: Jul 9 2020 23:43:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.8, Copyright (c), by Zend Technologies
Via phpinfo() :
PHP Version 7.3.20
So is there something that I need to address for this issue?