lundi 19 octobre 2015

php artisan creates controller with "use App\Http\Controllers\Controller" but it is never used

When I create a controller in Laravel with the php artisan command

php artisan make:controller TestController

it create a controller which includes

use App\Http\Controllers\Controller 

PhpStorm hints: Alias "App\Http\Controllers\Controller" is never used.

This seems to be correct because the part

class TestController extends Controller

works fine without it. So can I remove the "use App\Http\Controllers\Controller" or am I missing something?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire