PHPStorm Auto Import in File Scope

For example you’re developing an app in Laravel. You want to add a new Route to routes/web.phpfile. Route::get(‘payment’, ‘App\\Http\\Controllers\[email protected]’); As you can see you must write class and method name as string. But you can make this better way: Route::get(‘payment’, [App\Http\Controller\PaymentController::class, ‘pay’]); This is better then other becouse you can open Devamı…

önce , admin tarafından