Laravel ile yazılmış olan script localhostta sorunsuz çalışıyor. Sunucu da da kurulum sorunsuz yapılıyor fakat admin paneline girip Türkçe dilini eklediğim zaman
Call to undefined method Illuminate\Routing\ResourceRegistrar::addResource�ndex()
Error
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Routing/ResourceRegistrar.php (line 98)
$defaults = $this->resourceDefaults; $collection = new RouteCollection; foreach ($this->getResourceMethods($defaults, $options) as $m) { $collection->add($this->{'addResource'.ucfirst($m)}( $name, $base, $controller, $options )); } return $collection;
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Routing/PendingResourceRegistration.php -> register (line 195)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Routing/PendingResourceRegistration.php -> register (line 207)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php -> __destruct (line 261)
Facade::__callStatic('resource', array('advertisings', 'AdvertisingController', array('names' => array('index' => 'crud.advertisings.index', 'create' => 'crud.advertisings.create', 'store' => 'crud.advertisings.store', 'edit' => 'crud.advertisings.edit', 'update' => 'crud.advertisings.update', 'show' => 'crud.advertisings.show', 'destroy' => 'crud.advertisings.destroy'))))
in /home/ekipx/public_html/packages/larapen/admin/src/RoutesCrud.php (line 51)
'show' => 'crud.' . $name . '.show', 'destroy' => 'crud.' . $name . '.destroy', ], ], $options); Route::resource($name, $controller, $optionsWithDefaultRouteNames); }}
RoutesCrud::resource('advertisings', 'AdvertisingController')
in /home/ekipx/public_html/routes/web.php (line 96)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> {closure} (line 415)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> loadRoutes (line 374)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php -> group (line 261)
Facade::__callStatic('group', array(array('middleware' => array('admin', 'clearance', 'banned.user', 'prevent.back.history')), object(Closure)))
in /home/ekipx/public_html/routes/web.php (line 156)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> {closure} (line 415)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> loadRoutes (line 374)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php -> group (line 261)
Facade::__callStatic('group', array(array('namespace' => 'App\\Http\\Controllers\\Admin', 'middleware' => array('web', 'install.checker'), 'prefix' => 'k-admin-k'), object(Closure)))
in /home/ekipx/public_html/routes/web.php (line 157)
require('/home/ekipx/public_html/routes/web.php')
in /home/ekipx/public_html/app/Providers/RouteServiceProvider.php (line 55)
RouteServiceProvider->mapWebRoutes()
in /home/ekipx/public_html/app/Providers/RouteServiceProvider.php (line 40)
RouteServiceProvider->map()
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php call_user_func_array (line 33)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php :: Illuminate\Container\{closure} (line 36)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php :: unwrapIfClosure (line 91)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php :: callBoundMethod (line 35)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php :: call (line 592)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php -> call (line 87)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php -> loadRoutes (line 36)
RouteServiceProvider->boot()
in /home/ekipx/public_html/app/Providers/RouteServiceProvider.php (line 28)
RouteServiceProvider->boot()
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php call_user_func_array (line 33)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/Util.php :: Illuminate\Container\{closure} (line 36)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php :: unwrapIfClosure (line 91)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php :: callBoundMethod (line 35)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php :: call (line 592)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php -> call (line 867)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php -> bootProvider (line 850)
Application->Illuminate\Foundation\{closure}(object(RouteServiceProvider), 53)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php array_walk (line 851)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php -> boot (line 17)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php -> bootstrap (line 230)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php -> bootstrapWith (line 151)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php -> bootstrap (line 135)
in /home/ekipx/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php -> sendRequestThroughRouter (line 109)
hatası alıyorum . Bayağıdır araştırıyorum fakat sorunun ne olduğu hakkında en ufak bilgim yok. Sorunumu burada çözüme kavuşturacağıma inanıyorum.