Giter VIP home page Giter VIP logo

laravel-follow's People

Contributors

hareku avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-follow's Issues

Issue with Laravel v5.5.32

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.

Class name must be a valid object or a string

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    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.