for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Capsule\Manager as Capsule;
class CreateRolesToRightTable
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* Do the migration
*/
public function up()
Capsule::schema()->create('roles_to_rights', function($table) {
$table->integer('role_id')->unsigned();
$table->integer('right_id')->unsigned();
$table->primary(['role_id', 'right_id']);
});
}
* Undo the migration
public function down()
Capsule::schema()->drop('roles_to_rights');
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.