{"comment":{"url":"https://api.github.com/repos/besologic/quicksand/comments/18265037","html_url":"https://github.com/besologic/quicksand/commit/17503c478ab9f76a30696bb758f3c1d9b68f8fdd#commitcomment-18265037","id":18265037,"user":{"login":"mattstauffer","id":151829,"avatar_url":"https://avatars.githubusercontent.com/u/151829?v=3","gravatar_id":"","url":"https://api.github.com/users/mattstauffer","html_url":"https://github.com/mattstauffer","followers_url":"https://api.github.com/users/mattstauffer/followers","following_url":"https://api.github.com/users/mattstauffer/following{/other_user}","gists_url":"https://api.github.com/users/mattstauffer/gists{/gist_id}","starred_url":"https://api.github.com/users/mattstauffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattstauffer/subscriptions","organizations_url":"https://api.github.com/users/mattstauffer/orgs","repos_url":"https://api.github.com/users/mattstauffer/repos","events_url":"https://api.github.com/users/mattstauffer/events{/privacy}","received_events_url":"https://api.github.com/users/mattstauffer/received_events","type":"User","site_admin":false},"position":41,"line":41,"path":"src/ForceDeleteModels.php","commit_id":"17503c478ab9f76a30696bb758f3c1d9b68f8fdd","created_at":"2016-07-15T17:27:42Z","updated_at":"2016-07-15T17:27:42Z","body":"In order to add the ability to list a model with no config, we need to differentiate. So:\r\n\r\n```php\r\nreturn $models->map(function ($modelOrConfig, $modelNameOrKey) use ($days) {\r\n    if (is_array($modelOrConfig)) {\r\n        return $this->handle($modelNameOrKey, $modelOrConfig);\r\n    }\r\n    return $this->handle($modelOrConfig, []);\r\n});\r\n\r\n...\r\n\r\npublic function handle()\r\n{\r\n   soft deletedays\r\n\r\n   return db:: \r\n\r\netc\r\n}\r\n```"}}
{"actor":{"display_login":"mattstauffer"}}