@@ -20,6 +20,9 @@ |
||
| 20 | 20 | return (new static('`toFeedItem` should return an instance of `Spatie\Feed\Feedable`'))->withSubject($subject); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $field |
|
| 25 | + */ |
|
| 23 | 26 | public static function missingField(FeedItem $subject, $field) |
| 24 | 27 | { |
| 25 | 28 | return (new static("Field `{$field}` is required"))->withSubject($subject); |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Feed; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Arr; |
|
| 5 | +use Illuminate\Contracts\Support\Responsable; |
|
| 6 | 6 | use Illuminate\Http\Response; |
| 7 | +use Illuminate\Support\Arr; |
|
| 7 | 8 | use Illuminate\Support\Collection; |
| 8 | 9 | use Spatie\Feed\Exceptions\InvalidFeedItem; |
| 9 | -use Illuminate\Contracts\Support\Responsable; |
|
| 10 | 10 | |
| 11 | 11 | class Feed implements Responsable |
| 12 | 12 | { |