title: Laravel select 1line
body: <p>There is a table in pma &quot;ogsett&quot;, you need to select one line in it.
  In the model, Ogsett indicated which table to work with.
  In the controller (ServiceController) I indicated the following code</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Service;
  use App\Ogsett;
  use Illuminate\Http\Request;
  
  class ServiceController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          $og = Ogsett::wherePages('service');
          return view('price.main', compact('og'));
      }
  
  </code></pre>
  <p>On the page, I display it like this</p>
  <pre><code>@foreach($og as $seo_item)
  {{ $seo_item-&gt;title }}
  @endforeach
  </code></pre>
  <p>In it, I refer to this table, and select the field with the value title - service.
  But my data is not displayed on the page.</p>
  <p>The base itself looks like this</p>
  <pre><code>=======================================================
  |ID|PAGES| TITLE|DESCRIPTION|URL|IMAGES|LOCAL|SITE_NAME|
  =======================================================
  | 1|service|TitlePage|DescPage Service|service|images.jpg|en|localhost|
  | 2|contact|ContactPage|DescPage Contact|conatact|images.jpg|en|localhost|
  
  </code></pre>
  <p>Where did I go wrong?</p>