database/seeders/CoursesPermissionSeeder.php
Method run
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run()
{
// create permissions
$admin = Role::findOrCreate(UserRole::ADMIN, 'api');
$tutor = Role::findOrCreate(UserRole::TUTOR, 'api');