title: $fillable must not be defined (as in class Illuminate\Database\Eloquent\Model) in laravel
body: <p>I have following laravel model. When I try to visit the site it shows the following error.</p>
  <blockquote>
  <p>Symfony\Component\ErrorHandler\Error\FatalError
  Type of App\Models\Setting::$fillable must not be defined (as in class Illuminate\Database\Eloquent\Model)</p>
  </blockquote>
  <p><strong>Environment information</strong></p>
  <p>Laravel version: 8.60.0</p>
  <p>PHP version: 7.4.16</p>
  <pre><code>&lt;?php
          namespace App\Models;
          
          use Illuminate\Database\Eloquent\Factories\HasFactory;
          use Illuminate\Database\Eloquent\Model;
          
          class Setting extends Model
          {
              use HasFactory;
          
              protected array $fillable = [
                  'key',
                  'value',
              ];
          
              protected $casts = [
                  'value' =&gt; 'array',
              ];
          }
  </code></pre>