FatalErrorException in 4dba2ea5c6a0f502c52e2025c94978ab5b277628.php line 6: Call to undefined method App\Repository\SiteMeta\SiteMetaServiceProvider::get_all() <?php namespace app\Repository\SiteMeta; use App\SiteMeta; class SiteMeta { public $meta_array = []; public $meta_collection = null; /** * Get meta by it's keys * * @param null * @return null */ public function get($sid, $meta_key) { } /** * Get all meta values * * @param null * @return null */ public function get_all($sid) { $meta = SiteMeta::where('site_id', $sid)->get(); $this->meta_collection = $meta; $this->meta_array = $meta->toArray(); return $meta; } } //Service Provider <?php namespace App\Repository\SiteMeta; use Illuminate\Support\ServiceProvider; class SiteMetaServiceProvider extends ServiceProvider { /** * Bootstrap the application services. * * @return void */ public function boot() { // } /** * Register the application services. * * @return void */ public function register() { $this->app->bind('sitemeta', 'App\Repository\SiteMeta\SiteMeta'); } }