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 RinvexFortAbilitiesTableSeeder 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.abilities'))->truncate();
// Get abilities data
$abilities = require __DIR__.'/../../resources/data/abilities.php';
// Create new abilities
foreach ($abilities as $ability) {
app('rinvex.fort.ability')->create($ability);
}
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.