title: Laravel How to include Schema.org structured data on multiple pages
body: <p>I'm building a <code>laravel</code>-application where I want to include some <code>schema.org</code> structured data. In my <code>app.blade.php</code> - file, which is a layout file  - I have included this:</p>
  
  <pre><code>&lt;script type="application/ld+json"&gt;
  {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "name": "thecompany.com",
      "alternateName": "the company",
      "url": "{{ route('home') }}"
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Now I want to add different parameters, pending on which subpage I am. For example I have a Job-listing page where I want each single jobpage to have something like:</p>
  
  <pre><code>{
    "@context" : "https://schema.org/",
    "@type" : "JobPosting",
    "title" : "Software Engineer",
    "description" : "&lt;p&gt;Become our next developer.&lt;/p&gt;",
    "employmentType" : "CONTRACTOR",
    "hiringOrganization" : {
       "@type" : "Organization",
       "name" : "The Company",
       "sameAs" : "http://www.google.com",
       "logo" : "http://www.example.com/images/logo.png",
       "baseSalary": {
         "@type": "MonetaryAmount",
         "currency": "USD",
         "value": {
            "@type": "QuantitativeValue",
            "value": 40.00,
            "unitText": "HOUR"
         }
     }
  }
  </code></pre>
  
  <p>and the values change of course pending on which job page you are.</p>
  
  <p>I tried to add the script in the <code>job.blade.php</code>-file but it seems that it gets overridden by the script which is located in the <code>app.blade.php</code>-file </p>
  
  <p>How can I solve this?</p>