Laravel - Controllers
Which of the following is the correct syntax to register a resource controller named
PostController for the route /posts?PostController for the route /posts?Route::resource('uri', ControllerClass::class) to register all resource routes.controller which is different. Route::get('posts', PostController::resource()); is invalid syntax. Route::resource('PostController', 'posts'); swaps parameters incorrectly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions