{"action":"closed","issue":{"url":"https://api.github.com/repos/Folkloreatelier/laravel-image/issues/5","labels_url":"https://api.github.com/repos/Folkloreatelier/laravel-image/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Folkloreatelier/laravel-image/issues/5/comments","events_url":"https://api.github.com/repos/Folkloreatelier/laravel-image/issues/5/events","html_url":"https://github.com/Folkloreatelier/laravel-image/issues/5","id":60085718,"number":5,"title":"Route cache generation not possible due Closure","user":{"login":"mauserrifle","id":1580250,"avatar_url":"https://avatars.githubusercontent.com/u/1580250?v=3","gravatar_id":"","url":"https://api.github.com/users/mauserrifle","html_url":"https://github.com/mauserrifle","followers_url":"https://api.github.com/users/mauserrifle/followers","following_url":"https://api.github.com/users/mauserrifle/following{/other_user}","gists_url":"https://api.github.com/users/mauserrifle/gists{/gist_id}","starred_url":"https://api.github.com/users/mauserrifle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauserrifle/subscriptions","organizations_url":"https://api.github.com/users/mauserrifle/orgs","repos_url":"https://api.github.com/users/mauserrifle/repos","events_url":"https://api.github.com/users/mauserrifle/events{/privacy}","received_events_url":"https://api.github.com/users/mauserrifle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T10:40:38Z","updated_at":"2015-03-20T04:26:55Z","closed_at":"2015-03-20T04:26:55Z","body":"The following code should just use a Controller:\r\n\r\n    $app->make('router')->get('{path}', function($path) use ($app)\r\n\r\nBecause cache generation may fail now because of `laravel-image`:\r\n\r\n    php artisan route:cache\r\n    Route cache cleared!\r\n    \r\n    \r\n                                                                         \r\n      [LogicException]                                                   \r\n      Unable to prepare route [{path}] for serialization. Uses Closure.  \r\n    "}}