@@ -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,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Feed; |
4 | 4 | |
5 | +use Illuminate\Contracts\Support\Responsable; |
|
5 | 6 | use Illuminate\Http\Response; |
6 | 7 | use Illuminate\Support\Collection; |
7 | 8 | use Spatie\Feed\Exceptions\InvalidFeedItem; |
8 | -use Illuminate\Contracts\Support\Responsable; |
|
9 | 9 | |
10 | 10 | class Feed implements Responsable |
11 | 11 | { |