private function generateSeeder()
    {
        // Get the stub file and format our permissions.
        $stub        = $this->files->get(__DIR__ . '/stubs/Seeder.stub');
        $permissions = $this->permissions->map(function ($permission) {
            return (array)$permission;
        });
        $permissions = $this->export($permissions->toArray(), "\t");

        // Replace the parts of the stub with actual data.
        $patterns = [
            '__NAME__',
            '__TABLE__',
            '__INSERTS__',
        ];

        $replace = [
            'RbacPermissions',
            'rbac_permissions',
            $permissions,
        ];

        $stub = str_replace($patterns, $replace, $stub);

        // Save the file.
        $this->files->put(base_path('database/seeds/RbacPermissions.php'), $stub);
    }