I have a relationship defined as :
public function contract(){
return $this->belongsTo(contract::class);
}
When I call this relationship in test suites. I get no error. It ignores the case-sensitivity and successfully loads the class Contract
instead of contract
which doesn't exist.
But the same relationship when called through normal client call, it throws and error Class 'App\Models\contract' not found
.
Why laravel is not throwing any error when this relationship is called through test-suites.Can we disable this behaviour?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3hJY7nn
via IFTTT
Aucun commentaire:
Enregistrer un commentaire