for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* NOTICE OF LICENSE
*
* Part of the Rinvex Fort Package.
* This source file is subject to The MIT License (MIT)
* that is bundled with this package in the LICENSE file.
* Package: Rinvex Fort Package
* License: The MIT License (MIT)
* Link: https://rinvex.com
*/
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class RinvexFortRolesTableSeeder extends Seeder
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.
{
/**
* Run the database seeds.
* @return void
public function run()
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
DB::table(config('rinvex.fort.tables.roles'))->truncate();
// Get roles data
$roles = require __DIR__.'/../../resources/data/roles.php';
// Create new roles
foreach ($roles as $role) {
app('rinvex.fort.role')->create($role);
}
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
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.