# Video Object

Below you will find the code you can use to generate a Video Object rich data JSON.

# Your code

$address = SchemaPostalAddress::make()
	->street('Da Costastraat 8')
	->locality('Alphen aan den Rijn')
	->region('Zuid-Holland')
	->postalCode('2406 AT')
	->country('NL');

$geo = SchemaGeoCoordinates::make()
	->latitude(37.293058)
	->longitude(-121.988331);

$openingHoursSpecification = SchemaOpeningHoursSpecification::make()
	->dayOfWeek([
		'Monday',
		'Tuesday',
		'Wednesday',
		'Thursday',
		'Friday',
		'Saturday',
	])
	->opens('08:00')
	->closes('23:00');

$openingHoursSpecificationSunday = SchemaOpeningHoursSpecification::make()
	->dayOfWeek('Sunday')
	->opens('10:00')
	->closes('16:00');

$business = SchemaLocalBusiness::make(config('app.name'))
	->id(config('app.url'))
	->type('Store')
	->image('https://example.com/photo-1.jpg')
	->image('https://example.com/photo-2.jpg')
	->image('https://example.com/photo-3.jpg')
	->image('https://example.com/photo-4.jpg')
	->url(config('app.url'))
	->priceRange('$$$')
	->telephone('0628998954')
	->address($address)
	->openingHoursSpecification($openingHoursSpecification)
	->openingHoursSpecification($openingHoursSpecificationSunday)
	->geo($geo);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

# The result

[
    {
        "@context": "https://schema.org/",
        "@type": "Store",
        "@id": "https://packages.test",
        "name": "MM Packages",
        "image": [
            "https://example.com/photo-1.jpg",
            "https://example.com/photo-2.jpg",
            "https://example.com/photo-3.jpg",
            "https://example.com/photo-4.jpg"
        ],
        "address": {
            "@type": "PostalAddress",
            "addressLocality": "Alphen aan den Rijn",
            "addressRegion": "Zuid-Holland",
            "postalCode": "2406 AT",
            "addressCountry": "NL"
        },
        "geo": {
            "@type": "GeoCoordinates",
            "latitude": 37.293058,
            "longitude": -121.988331
        },
        "url": "https://packages.test",
        "priceRange": "$$$",
        "telephone": "0628998954",
        "openingHoursSpecification": [
            {
                "@type": "OpeningHoursSpecification",
                "dayOfWeek": [
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday",
                    "Friday",
                    "Saturday"
                ],
                "opens": "08:00",
                "closes": "23:00"
            },
            {
                "@type": "OpeningHoursSpecification",
                "dayOfWeek": "Sunday",
                "opens": "10:00",
                "closes": "16:00"
            }
        ]
    },
    {
        "@context": "https://schema.org",
        "@type": "Organization",
        "url": "https://packages.test",
        "logo": "https://marshmallow.dev/cdn/media/mrmallow-250x250.png"
    },
    {
        "@context": "https://schema.org",
        "@type": "BreadcrumbList",
        "itemListElement": [
            {
                "@type": "ListItem",
                "position": 1,
                "name": "Home",
                "item": "https://packages.test"
            },
            {
                "@type": "ListItem",
                "position": 2,
                "name": "This is a test page entered in English",
                "item": "https://packages.test/this-is-a-test-page-entered-in-english"
            }
        ]
    }
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74