Support the ongoing development of Laravel.io →
Database Eloquent Packages

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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

marko marko Joined 2 Jun 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.