6 months ago

ErrorException (E_ERROR) Call to a member function diffForHumans() on string

Posted 6 months ago by behnampmdg3

Hi what's up it's Monday and I get this error.

I wanna show days since this has been a member and the exact date .

For example Member since March 15th 2019 (3 days)


{{ $course->created_at->diffForHumans() }}

Value in DB

2019-03-17 12:31:04


$courses = \DB::table('courses')
            ->join('member_course', '', '=', 'member_course.course_id')
            ->join('members', '', '=', 'member_course.member_id')
            ->where('', '=', $member->id)

Please sign in or create an account to participate in this conversation.