mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 16:32:15 +00:00
- refactored user_scope to author
- added author_id for future teams implementation
This commit is contained in:
@@ -32,24 +32,12 @@ class FileFactory extends Factory
|
||||
'type' => $this->faker->randomElement(
|
||||
['image', 'file', 'video', 'audio']
|
||||
),
|
||||
'user_scope' => $this->faker->randomElement(
|
||||
['master', 'editor', 'visitor']
|
||||
'author' => $this->faker->randomElement(
|
||||
['user', 'member', 'visitor']
|
||||
),
|
||||
'created_at' => $this->faker->dateTimeBetween(
|
||||
$startDate = '-36 months', $endDate = 'now', $timezone = null
|
||||
),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the model factory.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function configure()
|
||||
{
|
||||
return $this->afterCreating(function (File $file) {
|
||||
// TODO: add fake files
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user