Closed The1NdNly closed 8 years ago
I’ve been playing around trying to get this to work with no luck. just keep getting Nothing to publish for tag []
& FEE Trait 'App\Conner\Likeable\LikeableTrait' not found
Any ideas? iv'e ran php artisan config:clear
but its still stuck. a bug maybe?
Ok I'll do a release in the next day or two
Thankyou
Hi @rtconner, do you need help with this? I will take a look at your code and see what can I do.
I haven't had much free time to work on this. Trying to when I can.
Looking at your comments, I think you just need a slash at the beginning?
use \Conner\Likeable\LikeableTrait;
Ok this should all be fixes in version 1.2.0
Just an update, on a fresh install of laravel the doc's are still incorrect. you need to include like this.
use Conner\Likeable\LikeableTrait;
class Article extends Model {
use LikeableTrait;
Thanks @The1NdNly
Hello, Being fairly new to Laravel I still have to reference documentation most of the time to integrate packages to my app. While going about installing this I noticed the documentation if outdated.
Should be V1.1 for 5.2?
and
are outdated, i assume its the paths since i believe the package has had its file structure updated to
rtconner\laravel-likeable\src\LikeableTrait
?Also while running
php artisan vendor:publish --provider="Conner\Likeable\LikeableServiceProvider"
i get aNothing to publish for tag [].
error. Again i assume its to do with the path?After moving and migrating the migrations manually and running them i either get a
LikeableTrait' not found
error while trying to include it to my model. If i playaround with the file path to try and point it to the new one (both in app.php and the model) im getting aunexpected "-"
error due to the file path having a "-" in "laravel-likeable"Any help would be appreciated, im sure its just something basic im failing to do. hopefully with the docs updated it should avoid other novices having the same issue.
Kind regards, Matt