public function run() { foreach ($this->grants as $grant) { $thisGrant = new OAuthGrant(['id' => $grant]); $thisGrant->save(); } foreach ($this->scopes as $scopeName => $scopeDescription) { $thisScope = new OAuthScope(['id' => $scopeName, 'description' => $scopeDescription]); $thisScope->save(); } }