2 months ago by cosmas mullah

in the youtube channel video number 16/23 min 12:01 / 17:28 when i run my code at that point i get an error message of Fatal error: Call to undefined method DB::first() kindly assist on this

2 months ago by Louis Feather

"Call to undefined method DB::first()" means you're trying to call a method that isn't there.

Check your DB Class and see if there is a method (function) in there called "first". It should look something like this:

public static function first() {
    //some code here
}

Sign in or create an account to reply to this topic.