protected function createSeeder()
    {
        $permission = Config::get('laratrust.models.permission', 'App\Permission');
        $role = Config::get('laratrust.models.role', 'App\Role');
        $rolePermissions = Config::get('laratrust.tables.permission_role');
        $roleUsers = Config::get('laratrust.tables.role_user');
        $user = new Collection(Config::get('laratrust.user_models', ['App\User']));
        $user = $user->first();

        $output = $this->laravel->view->make('laratrust::seeder')
            ->with(compact([
                'role',
                'permission',
                'user',
                'rolePermissions',
                'roleUsers',
            ]))
            ->render();

        if ($fs = fopen($this->seederPath(), 'x')) {
            fwrite($fs, $output);
            fclose($fs);
            return true;
        }

        return false;
    }