I am using Laravel 5.1 now.
The migrations class file generated by php artisan make:migration create_users_table --create=users
command, would be like this:
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
// up and down ...
}
When I edit this migration class file and save it, PHP Code Sniffer in my sublime text will point out a non-standard message of 'Each Class must be in a namespace of at least one level'.
I got no answer in both [https://laravel.com/docs/5.1/migrations] and top batches search results. The related questions on stackoverflow doesn't clear me, either.
Any one knows the reason, or give me some hints? Thanks!