Thread: Laravel error

    #1
  1. A Change of Season
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,216
    Rep Power
    220

    Laravel error


    Hi;

    I don't use Laravel. I wrote some code last year. I wonder why suddenly I am getting this error:

    PHP Code:
    Symfony Component Debug Exception FatalErrorException

    Class Deals contains 3 abstract methods and must therefore be declared abstract 
    or 
    implement the remaining methods (Illuminate\Auth\UserInterface::getRememberTokenIlluminate\Auth\UserInterface::setRememberTokenIlluminate\Auth\UserInterface::getRememberTokenName
    Thanks
  2. #2
  3. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,304
    Rep Power
    2046
    That error is pretty well explained by itself.

    Class Deals contains 3 abstract methods and must therefore be declared abstract

    Your 'Deals' class is inheriting from a class with abstract methods (the Illumiate\Auth\UserInterface class), and you need to define those methods before you'll be allowed to use your class:

    1. Illuminate\Auth\UserInterface::getRememberToken
    2. Illuminate\Auth\UserInterface::setRememberToken
    3. Illuminate\Auth\UserInterface::getRememberTokenName
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2015
    Posts
    2
    Rep Power
    0
    Nice one! You could tell where to save that custom exception's as a file?
  6. #4
  7. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,304
    Rep Power
    2046
    Originally Posted by bruzines
    Nice one! You could tell where to save that custom exception's as a file?
    Why would you want to save an exception as a file? :/
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2015
    Posts
    2
    Rep Power
    0
    After saving it I can take it to ask professionals
  10. #6
  11. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,304
    Rep Power
    2046
    You would be better off using screenshots or copy-and-paste the errors. There's no need to save anything.

    Comments on this post

    • Will-O-The-Wisp agrees

IMN logo majestic logo threadwatch logo seochat tools logo