database/seeds/RolePermissionSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $role = Role::create(['name' => 'superadmin']);
        $permission = Permission::create(['name' => 'edit articles']);
    }
public function run ( ) { $ role = Role :: create ( [ 'name' => 'superadmin' ] ) ; $ permission = Permission :: create ( [ 'name' => 'edit articles' ] ) ; }
Run the database seeds.
Run the database seeds .