I'am building my first laravel application. And I have a question that I couldn't find anywhere else..
I have this block of code :
Route::prefix('/api')->group(function () {
Route::resource('/buildings', BuildingController::class);
})
Does anyone know how to select a specific method in resource the BuildingController. in the Route::get I'm using:
Route::get("/test", [Controller::class, "exampleMethod"])
But when I use that in a Route::resource it returns "Array to String conversion"
Any solutions?
Thanks in advance