{"action":"created","issue":{"url":"https://api.github.com/repos/Torann/mediasort/issues/4","labels_url":"https://api.github.com/repos/Torann/mediasort/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Torann/mediasort/issues/4/comments","events_url":"https://api.github.com/repos/Torann/mediasort/issues/4/events","html_url":"https://github.com/Torann/mediasort/issues/4","id":63711930,"number":4,"title":"[L5] Refresh Files","user":{"login":"ricardocanelas","id":663151,"avatar_url":"https://avatars.githubusercontent.com/u/663151?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardocanelas","html_url":"https://github.com/ricardocanelas","followers_url":"https://api.github.com/users/ricardocanelas/followers","following_url":"https://api.github.com/users/ricardocanelas/following{/other_user}","gists_url":"https://api.github.com/users/ricardocanelas/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardocanelas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardocanelas/subscriptions","organizations_url":"https://api.github.com/users/ricardocanelas/orgs","repos_url":"https://api.github.com/users/ricardocanelas/repos","events_url":"https://api.github.com/users/ricardocanelas/events{/privacy}","received_events_url":"https://api.github.com/users/ricardocanelas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-23T12:35:56Z","updated_at":"2015-04-08T20:24:28Z","closed_at":null,"body":"Hi, I have problems with refresh images..\r\n\r\nSee my model:\r\n\r\n```php\r\n<?php namespace App;\r\n\r\nuse Torann\\MediaSort\\ORM\\MediaSortInterface;\r\nuse Torann\\MediaSort\\ORM\\EloquentTrait;\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\n\r\nclass PostArchive extends Model implements MediaSortInterface\r\n{\r\n    use EloquentTrait;\r\n\r\n   public function __construct(array $attributes = array())\r\n    {\r\n        $this->hasMediaFile('file', array(\r\n            'styles' => array(\r\n                'thumb' => '50x50#'\r\n            ),\r\n           'url' => '/files/posts_archives/:id/:basename-:style.:extension',\r\n        ));\r\n\r\n        parent::__construct($attributes);\r\n    }\r\n    ..\r\n}\r\n```\r\n\r\nphp artisan media:refresh PostArchive\r\n```php\r\n [Torann\\MediaSort\\Exceptions\\InvalidClassException]                     \r\n  Invalid class: the PostArchive class is not currently using MediaSort.  \r\n```\r\n\r\nphp artisan MediaSort:refresh PostArchive\r\n```php\r\n [InvalidArgumentException]                                   \r\n  There are no commands defined in the \"MediaSort\" namespace.\r\n```"},"comment":{"url":"https://api.github.com/repos/Torann/mediasort/issues/comments/91026767","html_url":"https://github.com/Torann/mediasort/issues/4#issuecomment-91026767","issue_url":"https://api.github.com/repos/Torann/mediasort/issues/4","id":91026767,"user":{"login":"ricardocanelas","id":663151,"avatar_url":"https://avatars.githubusercontent.com/u/663151?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardocanelas","html_url":"https://github.com/ricardocanelas","followers_url":"https://api.github.com/users/ricardocanelas/followers","following_url":"https://api.github.com/users/ricardocanelas/following{/other_user}","gists_url":"https://api.github.com/users/ricardocanelas/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardocanelas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardocanelas/subscriptions","organizations_url":"https://api.github.com/users/ricardocanelas/orgs","repos_url":"https://api.github.com/users/ricardocanelas/repos","events_url":"https://api.github.com/users/ricardocanelas/events{/privacy}","received_events_url":"https://api.github.com/users/ricardocanelas/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T20:24:27Z","updated_at":"2015-04-08T20:24:27Z","body":"+1"}}