By @samuel · 2021-11-01 18:57
I see that you can also use the shorthand
action() function, nice.
Any idea how this sort of URL looks like? Does it go to the routes file and check whether there's a route that is connected to the same controller?
The URL is the same as the one that route names would generate:
route('post.create'); // /posts/create url()->action([PostController::class, 'create']); // /posts/create