Resolve a PHPCS error in a Laravel migration file

625 views Asked by At

In all my laravel migrations I want to use PSR2, but I getting a warning.

 use Illuminate\Database\Migrations\Migration;

    use Illuminate\Database\Schema\Blueprint;

    class CreatePlayersTable extends Migration {
      // migration 
    }

The error phpcs warning is Each class must be in a namespace of at least one level (a top-level vendor name)

How can I fix this warning?

0

There are 0 answers