Closed hotmeteor closed 9 years ago
Error 1 is related to https://github.com/CodeSleeve/laravel-stapler/blob/master/src/Services/ImageRefreshService.php#L49, where it's expecting an array
but having a string (from the command-line) passed in. The function itself looks to be expecting a string as well.
Update:
Error 2 was bad syntax, and the model should have been in quotes:
php artisan stapler:refresh "Skynet\Artifacts\Artifact"
This pull fixes that issue: https://github.com/CodeSleeve/laravel-stapler/pull/66
I've merged this PR so this is on master now and will be in the next release.
Laravel 4 laravel-stapler v1.0.0
Trying to refresh, however i'm receiving two different errors and unable to perform a refresh.
Error 1, when trying to specify an attachment (
php artisan stapler:refresh Artifact --attachments="image"
):Error 2, when trying without an attachment (
php artisan stapler:refresh Skynet/Artifacts/Artifact
) or (php artisan stapler:refresh Artifact
):My models are in subfolders.
Any ideas? Thanks.