I run this code in my controller
Top of my controller
use Waavi\Translation\Repositories\LanguageRepository;
use Waavi\Translation\Repositories\TranslationRepository;
function that runs
public function give(){
$language = LanguageRepository::findByLocale(1);
}
it says
Non-static method Waavi\Translation\Repositories\LanguageRepository::findByLocale() should not be called statically, assuming $this from incompatible context.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community