namespace App\Service\Test;
class Contacts {
$contrat_data = \MyTable ::where('contactID', '=', '2')->first(); //If this line is copy and pasted then the issue is the space.
$contrat_data = MyTable::where('contactID', '=', '2')->first(); //Try this
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community