title: Add [type] to fillable property to allow mass assignment error when inserting classname to table
body: <p>I'm trying to insert a classname ie. App\Models\CustomerImport into a table using the following code:</p>
  <pre><code>$import = Import::create([
              'type' =&gt; $type, \\evaluates to App\Models\CustomerImport
              'campaign_id' =&gt; session('activeCampaign'),
              'filename' =&gt; $filename,
              'original_filename' =&gt; $originalFilename,
              'extra_attributes' =&gt; $extraAttributes,
          ]);
  </code></pre>
  <p>I'm getting the error, <code>Add [type] to fillable property to allow mass assignment on [App\Models\CustomerImport].</code></p>
  <p>Does anyone have an idea why this could be happening?</p>
  <p><em>EDIT</em>
  Just to clear the confusion, Import and CustomerImport are two different models. I'm trying to insert data into the import table using the Import model. One of the columns is type which is supposed to be a classname. The Import model is below</p>
  <pre><code>class Import extends Model
  {
      use LogsActivity;
      use HasChildren;
  
      protected $fillable = [
          'campaign_id',
          'type',
          'filename',
          'original_filename',
          'rows_total_count',
          'rows_success_count',
          'rows_error_count',
          'processed_at',
          'failed_at',
          'pruned_at',
      ];
  
   
     
  }
  </code></pre>
  <p><strong>SOLUTION</strong>
  I've finally figured out the problem. I'm adopting a team member's csv import code to my app. In the Import and CustomerImport he's used the <a href="https://github.com/calebporzio/parental" rel="nofollow noreferrer">Parental</a> package from Caleb Porzio, . This gives the ability to access a child's model from a parent and vice versa. To do so, the CustomerImport model extends the Import model however I didn't notice this and mine was extending the default model hence the error.</p>