plugin
plugin copied to clipboard
[Feature request] Scaffolding controller action from routing definition
Example routing definition:
Route::get('/foo', 'FooBarController@foo')->name('foo');
Route::post('/bar/{id}', 'FooBarController@bar')->name('bar');
Scaffolding via Show Context Actions menu action, on action fragment:
<?php
namespace App\Http\Controllers;
class FooBarController extends Controller
{
public function foo()
{
}
public function bar($id)
{
}
}
Yes. It's a good idea. I'm thinking about it a lot. However, I think I can only create a class with 1 method with "Add Missing Controller" quick fix. And then... maybe add a new quick fix: "Add Missing Method"...
Yes, that's what I meant, but I didn't know how to describe it. In case this is the first method, it would create the entire controller. In case the controller already existed, it would add a second method.
@adelf What status?
Has anything changed since the last comment?