File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ protected function importCsv()
132
132
133
133
protected function createNewImport ()
134
134
{
135
- /** @var \Illuminate\Foundation\Auth\User */
135
+ /**
136
+ * @var \Coderflex\LaravelCsv\Tests\Models\User */
136
137
$ user = auth ()->user ();
137
138
138
139
return $ user ->imports ()->create ([
Original file line number Diff line number Diff line change 10
10
*
11
11
* @property int $id
12
12
* @property int|null $user_id
13
+ * @property string $model
13
14
* @property string $file_path
14
15
* @property string $file_name
15
16
* @property int $total_rows
@@ -30,14 +31,9 @@ class Import extends Model
30
31
protected $ table = 'csv_imports ' ;
31
32
32
33
/**
33
- * The attributes that are mass assignable.
34
+ * The attributes that aren't mass assignable.
34
35
*
35
- * @var string[]
36
+ * @var array< string>|bool
36
37
*/
37
38
protected $ guarded = [];
38
-
39
- public function importable ()
40
- {
41
- return $ this ->morphTo ();
42
- }
43
39
}
You can’t perform that action at this time.
0 commit comments