Routing In Laravel 8 - Be aware of this major change || Just Laravel

preview_player
Показать описание
Routing In Laravel 8 - A major change you need to know.

With the latest release of Laravel, routing has been changed. We no longer can write routes the old Laravel way, since its latest release that is Laravel 8.

The old way:

Routing in new Laravel 8 way:
use App\Http\Controllers\MainController;
Route::get('get-data', [MainController::class, 'getData']);

In Laravel 8 routing, there are 2 changes,
i) The syntax in the second param of the Route function, we should pass an array with the Controller name and its method and
ii) To import every controller used at the top of the file.

So make sure you are aware of this change.

#laravel8 #routing #php

~~~~~~~~~~~~~~~~~~~~~~
Course Suggestion:
~~~~~~~~~~~~~~~~~~~~~~

Timeline:
0:00 - 0:03 : Channel Intro
0:03 - 0:06 : Video Title
0:07 - 0:48 : Video Intro(Talking Head)
0:49 - 4:43 : Routing In Laravel 8
4:44 - 4:57 : Video Outro
4:58 - 5:00 : Thank you
5:01 - 5:21 : Channel Outro

Channel related links :
Рекомендации по теме
Комментарии
Автор

Thanks man, you just saved me hours of debugging

walshakapollostimothy