<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nipe Rich</title>
    <description>The latest articles on DEV Community by Nipe Rich (@nipe_rich_c693a63904ce877).</description>
    <link>https://dev.to/nipe_rich_c693a63904ce877</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3470022%2F40c115e1-7055-4e6a-a9cb-eef7434eaa5d.png</url>
      <title>DEV Community: Nipe Rich</title>
      <link>https://dev.to/nipe_rich_c693a63904ce877</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nipe_rich_c693a63904ce877"/>
    <language>en</language>
    <item>
      <title>Best Way to Add Schema Markup for Real Estate in Laravel?</title>
      <dc:creator>Nipe Rich</dc:creator>
      <pubDate>Sat, 30 Aug 2025 19:22:32 +0000</pubDate>
      <link>https://dev.to/nipe_rich_c693a63904ce877/best-way-to-add-schema-markup-for-real-estate-in-laravel-4e44</link>
      <guid>https://dev.to/nipe_rich_c693a63904ce877/best-way-to-add-schema-markup-for-real-estate-in-laravel-4e44</guid>
      <description>&lt;p&gt;I’m working on a Laravel-based property website and exploring the best way to add &lt;strong&gt;schema markup&lt;/strong&gt; for real estate listings. Schema helps Google understand property details such as price, location, and availability, and can make listings eligible for rich snippets.&lt;/p&gt;

&lt;p&gt;As an example of a Laravel-powered real estate site, you can look at &lt;a href="https://danvastproperty.com" rel="noopener noreferrer"&gt;Danvast Property&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Simple Approach I Tried
&lt;/h2&gt;

&lt;p&gt;In my project, I embedded JSON-LD directly into the property detail Blade template:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
php&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "&lt;a class="mentioned-user" href="https://dev.to/context"&gt;@context&lt;/a&gt;": "&lt;a href="https://schema.org" rel="noopener noreferrer"&gt;https://schema.org&lt;/a&gt;",&lt;br&gt;
  "@type": "Offer",&lt;br&gt;
  "itemOffered": {&lt;br&gt;
    "@type": "Apartment",&lt;br&gt;
    "name": "{{ $property-&amp;gt;title }}",&lt;br&gt;
    "address": {&lt;br&gt;
      "@type": "PostalAddress",&lt;br&gt;
      "streetAddress": "{{ $property-&amp;gt;address }}",&lt;br&gt;
      "addressLocality": "{{ $property-&amp;gt;city }}"&lt;br&gt;
    }&lt;br&gt;
  },&lt;br&gt;
  "priceCurrency": "USD",&lt;br&gt;
  "price": "{{ $property-&amp;gt;price }}",&lt;br&gt;
  "availability": "&lt;a href="https://schema.org/%7B%7B" rel="noopener noreferrer"&gt;https://schema.org/{{&lt;/a&gt; $property-&amp;gt;status == 'available' ? 'InStock' : 'SoldOut' }}",&lt;br&gt;
  "url": "{{ route('property.show', $property-&amp;gt;slug) }}"&lt;br&gt;
}&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This method is simple: just use Blade variables to inject dynamic property data into the JSON-LD.&lt;/p&gt;

&lt;h2&gt;
  
  
  Discussion Points
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Is embedding schema directly into the Blade view considered &lt;strong&gt;best practice&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;Would it be better to create a &lt;strong&gt;reusable Blade component&lt;/strong&gt; for schema markup?&lt;/li&gt;
&lt;li&gt;Has anyone here used a &lt;strong&gt;package or SEO helper&lt;/strong&gt; to manage structured data at scale in Laravel projects?&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>laravel</category>
      <category>php</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
