sineld
Merhaba,
Rica ederim. İsimlendirmeler çok sıkıntı oldu 🙂
protected $commands = [
Commands/startCronJob::class
//
];
olarak kullanıyordum.
use App\Console\Commands\startCronJob as startCronJob;
protected $commands = [
startCronJob::class
//
];
olarak değiştirmek zorunda kaldım.
protected $commands = [
App\Console\Commands\startCronJob::class
//
];
Bu şekilde editör de algılamadı.
Ayrıca çoğu videoda Laravel-8 kısmında anlatılan bir kısmı da mutlaka yapmalısınız.Eski düzen route vermek istiyorsanız:
RouteServiceProvider:
protected $namespace = 'App\Http\Controllers'; kısmının yapılması gerektiği söylenmiş.
protected function mapWebRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
}
/**
* Define the "api" routes for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}