title: Laravel 8 Call to undefined method Illuminate\Database\MySqlConnection::tabel()
body: <p><strong>its laravel 8 course im getting this error while using query builder but with ORM its perfectly run well. when i comment this code and use another method for getting data with query builder in AllCat() method DB::table is running perfectly</strong></p>
  <p><strong>Category Controller</strong></p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\Models\Category;
  use Auth;
  use Illuminate\Support\Carbon;
  use Illuminate\Support\Facades\DB;
  
  class CategoryController extends Controller
  {
  public function AllCat(){
      $categories = DB::tabel('categories')
      -&gt;join('users','categories.user_id','users.id')
      -&gt;select('categories.*','users.name')
      -&gt;latest()-&gt;paginate(5);
  
  
  
    // $categories  = Category::latest()-&gt;paginate(5);
    //$categories = DB::table('categories')-&gt;latest()-&gt;paginate(5);
      return view('admin.category.index',compact('categories'));
  }
  
  public function AddCat(Request $request){
      $validated = $request-&gt;validate([
          'category_name' =&gt; 'required|unique:categories|max:255',
          
      ],
      [
          'category_name.required' =&gt; 'Please Input Category Name',
          'category_name.max' =&gt; 'Category Less Then 255Chars',
      ]);
  
      Category::insert([
        'category_name' =&gt; $request-&gt;category_name,
         'user_id' =&gt; Auth::user()-&gt;id,
         'created_at' =&gt; Carbon::now()
      ]);
  
      // $category = new Category;
      // $category-&gt;category_name = $request-&gt;category_name;
      // $category-&gt;user_id = Auth::user()-&gt;id;
      // $category-&gt;save();
  
      // $data = array();
      // $data['category_name'] = $request-&gt;category_name;
      // $data['user_id'] = Auth::user()-&gt;id;
      // DB::table('categories')-&gt;insert($data);
  
       return redirect()-&gt;back()-&gt;with('success','Category Inserted Successfull');
  }
  
  
  }
  </code></pre>
  <p><strong>Index.blade.php</strong></p>
  <pre><code>&lt;x-app-layout&gt;
  &lt;x-slot name=&quot;header&quot;&gt;
      &lt;h2 class=&quot;font-semibold text-xl text-gray-800 leading-tight&quot;&gt;
          All Category&lt;b&gt;  &lt;/b&gt;
          
          &lt;/b&gt;
      &lt;/h2&gt;
  &lt;/x-slot&gt;
  
  &lt;div class=&quot;py-12&quot;&gt;
      
  &lt;div class=&quot;container&quot;&gt;
      &lt;div class=&quot;row&quot;&gt;
  
      &lt;div class=&quot;col-md-8&quot;&gt;
      &lt;div class=&quot;card&quot;&gt;
      @if(session('success'))
      &lt;div class=&quot;alert alert-success alert-dismissible fade show&quot; role=&quot;alert&quot;&gt;
    &lt;strong&gt;{{ session('success') }}&lt;/strong&gt;
    &lt;button type=&quot;button&quot; class=&quot;btn-close&quot; data-bs-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;&lt;/button&gt;
  &lt;/div&gt;
      @endif
          &lt;div class=&quot;card-header&quot;&gt; All Category 
          &lt;/div&gt;
         
      
      
      &lt;table class=&quot;table&quot;&gt;
          &lt;thead&gt;
              &lt;tr&gt;
              &lt;th scope=&quot;col&quot;&gt;SL No&lt;/th&gt;
              &lt;th scope=&quot;col&quot;&gt;Category Name&lt;/th&gt;
              &lt;th scope=&quot;col&quot;&gt;User&lt;/th&gt;
              &lt;th scope=&quot;col&quot;&gt;Created At&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;!-- @php($i = 1) --&gt;
              @foreach($categories as $category)
              &lt;tr&gt;
              &lt;th scope=&quot;row&quot;&gt;{{ $categories-&gt;firstItem()+$loop-&gt;index }}&lt;/th&gt;
              &lt;td&gt;{{ $category-&gt;category_name }}&lt;/td&gt;
              &lt;td&gt;{{ $category-&gt;name }}&lt;/td&gt;
              &lt;td&gt;
              @if($category-&gt;created_at == NULL)
              &lt;span class=&quot;text-danger&quot;&gt;No Date Set&lt;/span&gt;
              @else
  
              {{ Carbon\Carbon::parse($category-&gt;created_at)-&gt;diffforHumans() }}&lt;/td&gt;
              
              @endif
              &lt;/tr&gt;
              @endforeach
          &lt;/tbody&gt;
          &lt;/table&gt;
  
          {{ $categories-&gt;links() }}
  
          &lt;/div&gt;
   
      &lt;/div&gt;
  
      &lt;div class=&quot;col-md-4&quot;&gt;
      &lt;div class=&quot;card&quot;&gt;
          &lt;div class=&quot;card-header&quot;&gt;Add Category&lt;/div&gt;
          
          &lt;div class=&quot;card-body&quot;&gt;
          &lt;form action=&quot;{{ route('store.category') }}&quot; method=&quot;POST&quot;&gt;
          @csrf
    &lt;div class=&quot;mb-3&quot;&gt;
      &lt;label for=&quot;exampleInputEmail1&quot; class=&quot;form-label&quot;&gt;Category Name&lt;/label&gt;
      &lt;input type=&quot;text&quot; name=&quot;category_name&quot; class=&quot;form-control&quot; id=&quot;exampleInputEmail1&quot; aria-describedby=&quot;emailHelp&quot;&gt;
  
      @error('category_name')
          &lt;span class=&quot;text-danger&quot;&gt;{{ $message }}&lt;/span&gt;
      @enderror
  
   &lt;/div&gt;
  
   &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Add Category&lt;/button&gt;
  &lt;/form&gt;
  &lt;/div&gt;
      &lt;/div&gt;
      
      &lt;/div&gt;
  
      &lt;/div&gt;
  
  
  
  &lt;/div&gt;
  
  
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Can you tell me what is wrong here</strong></p>