Comments (13)
Can you provide more information about your environment/app? Laravel Version, PHP Version, ServerType, etc. Would help in debugging the issue.
-TT
from laravel-friendships.
PHP v. 7.3.11 on command line
Developing locally with Homestead / MySQL
composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"bacon/bacon-qr-code": "1.0.3",
"barryvdh/laravel-dompdf": "^0.8.5",
"barryvdh/laravel-ide-helper": "^2.6",
"barryvdh/laravel-snappy": "^0.4.8",
"bitbeans/yubikey": "dev-master",
"doctrine/dbal": "^2.8",
"enso/activation": "^0.3.0",
"fideloper/proxy": "^4.0",
"kepex/laravel-crud-generator": "^0.1.7",
"laravel/framework": "^6.0",
"laravel/helpers": "^1.1",
"laravel/tinker": "^1.0",
"m3rten/laravel-double-opt-in": "^0.1.1",
"monarobase/country-list": "^2.1",
"monolog/monolog": "^1.24",
"nahid/talk": "^2.2",
"paragonie/constant_time_encoding": "^2.2",
"pragmarx/google2fa": "^3.0",
"pragmarx/google2fa-laravel": "^0.2.0",
"spatie/laravel-backup": "^6.0",
"spatie/laravel-medialibrary": "^7.3",
"vimeo/laravel": "^5.2"
},
"require-dev": {
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
Hope that helps for debugging.
As mentioned in this state I try to add the hootlex package
from laravel-friendships.
This package only has support for Laravel 5.x versions. Unfornately this package has not be updated to work with Laravel 6 & PHP 7+ even though some pr's for the same were submitted.
If you still want to use this package, you'd need to downgrade to Laravel 5 or find an alternative.
-TT
from laravel-friendships.
I've got the same error since yesterday, even though I'm running Laravel 5.x
from laravel-friendships.
I've got the same error since yesterday, even though I'm running Laravel 5.x
Your PHP version? This repo hasn't been updated/changed in a very long time. So if anything stops working, its cause you updated something to the newer version (anything released within the last 18 months is definitely not compatible), say for example your PHP version.
Also are you requiring through composer or adding manually to the composer.json file ?
-TT
from laravel-friendships.
I've got the same error. Running Laravel 5.6 and PHP 7.2.10
from laravel-friendships.
This package was last maintained during Laravel 5.4 with PHP v5.4. You cannot run this package on PHP7 as it will give you certain runtime exceptions.
Since this package is now abandoned, I will be forking it and creating a updated version with support for Laravel 8 sometime next weekend.
from laravel-friendships.
Thanks - I understand. The only strange thing is that it worked for a very long time with the same PHP / Laravel version. The last deploy i did 2-3 weeks ago. Nothing has changed in the Laravel friendships code for 2 years. And we haven't changed anything relevant in our project either (just some css). but today i got this error (...Could not parse version constraint ~5.: Invalid version string "~5....) for the first time.
from laravel-friendships.
That's the weird thing for me as well. I've worked with this package about a week ago with the same development setup (PHP 7.3) and it worked fine until a few days ago.
from laravel-friendships.
Ok. So since it was working fine until recently, I did quick google search and found a probable bug in composer that was reported ~2 weeks ago. Refer composer/composer#9191
If you updated composer recently, run composer selfupdate --rollback
and see if it fixes the issue.
from laravel-friendships.
I will try this. Thank you
from laravel-friendships.
Unfortunately i'm unexpectedly getting the same error:
[RuntimeException]
Could not load package hootlex/laravel-friendships in http://packagist.org: [UnexpectedValueException] Could not parse version constraint ~5.*: Invalid version string "~5.*"
[UnexpectedValueException]
Could not parse version constraint ~5.*: Invalid version string "~5.*"
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowes
t] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
Could you share your solution?
from laravel-friendships.
Refer to my previous reply, if you havn't updated your PHP version recently, it most likely a composer bug, see if your composer was updated recently, if so do a rollback.
from laravel-friendships.
Related Issues (20)
- getAcceptedFriends not returning the user details HOT 7
- can't send friend request HOT 2
- how do i use UUID HOT 2
- Call to undefined method App\User::getPendingsCount() HOT 2
- PHP 7.2 count() Issue HOT 2
- Friendship Status HOT 2
- "Incorrect table name" after publishing the vendor HOT 2
- Does not work with Laravel 5.8 (Event::fire) HOT 12
- laravel issue when I add notes to database HOT 3
- laravel-friendships needs a maintainer HOT 10
- How To Fetch Posts For only friends HOT 2
- Will this work HOT 3
- How do you check relationship with other user before sending a friend request? HOT 1
- Support for Laravel 6
- Laravel 7 support HOT 7
- Is this still maintained? HOT 3
- Replace usage of deprecated Illuminate\Events\Dispatcher::fire() HOT 4
- Why getFriends method returns all friends ? HOT 4
- Method Illuminate\Events\Dispatcher::fire does not exist HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-friendships.