File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ protected function importCsv()
132132
133133 protected function createNewImport ()
134134 {
135- /** @var \Illuminate\Foundation\Auth\User */
135+ /**
136+ * @var \Coderflex\LaravelCsv\Tests\Models\User */
136137 $ user = auth ()->user ();
137138
138139 return $ user ->imports ()->create ([
Original file line number Diff line number Diff line change 1010 *
1111 * @property int $id
1212 * @property int|null $user_id
13+ * @property string $model
1314 * @property string $file_path
1415 * @property string $file_name
1516 * @property int $total_rows
@@ -30,14 +31,9 @@ class Import extends Model
3031 protected $ table = 'csv_imports ' ;
3132
3233 /**
33- * The attributes that are mass assignable.
34+ * The attributes that aren't mass assignable.
3435 *
35- * @var string[]
36+ * @var array< string>|bool
3637 */
3738 protected $ guarded = [];
38-
39- public function importable ()
40- {
41- return $ this ->morphTo ();
42- }
4339}
You can’t perform that action at this time.
0 commit comments