hareku / laravel-follow Goto Github PK
View Code? Open in Web Editor NEWLaravel 5 Follow System.
License: MIT License
Laravel 5 Follow System.
License: MIT License
getting those errors while trying to install
λ composer require hareku/laravel-follow
Using version ^3.0 for hareku/laravel-follow
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for hareku/laravel-follow ^3.0 -> satisfiable by hareku/laravel-follow[3.0.0].
- Conclusion: remove laravel/framework v5.5.32
- Conclusion: don't install laravel/framework v5.5.32
- hareku/laravel-follow 3.0.0 requires illuminate/database 5.4.* -> satisfiable by illuminate/database[v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- don't install illuminate/database v5.4.0|don't install laravel/framework v5.5.32
- don't install illuminate/database v5.4.13|don't install laravel/framework v5.5.32
- don't install illuminate/database v5.4.17|don't install laravel/framework v5.5.32
- don't install illuminate/database v5.4.19|don't install laravel/framework v5.5.32
- don't install illuminate/database v5.4.27|don't install laravel/framework v5.5.32
- don't install illuminate/database v5.4.36|don't install laravel/framework v5.5.32
- don't install illuminate/database v5.4.9|don't install laravel/framework v5.5.32
- Installation request for laravel/framework (locked at v5.5.32, required as 5.5.*) -> satisfiable by laravel/framework[v5.5.32].
Installation failed, reverting ./composer.json to its original content.
Hey, this is my code,
public function userFollow($id)
{
$authuser = Auth::user();
$authuser->follow($id);
return redirect()->back()->with('message', 'Following User');
}
where $id
is the user id passed from the view to the controller via route.
But I am getting an error
FatalErrorException in HasRelationships.php line 487:
Class name must be a valid object or a string
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.