Object of class Illuminate\\Database\\Eloquent\\Builder could not be converted to string

PHP
Put "->first();" in the end of function call
Source

Also in PHP: