-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from biigle/laravel-9
Upgrade to Laravel 9
- Loading branch information
Showing
4 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/Database/Factories/AnnotationAssistanceRequestFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Biigle\Modules\Ananas\Database\Factories; | ||
|
||
use Biigle\ImageAnnotation; | ||
use Biigle\Modules\Ananas\AnnotationAssistanceRequest; | ||
use Biigle\User; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class AnnotationAssistanceRequestFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var string | ||
*/ | ||
protected $model = AnnotationAssistanceRequest::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'token' => $this->faker->sha256, | ||
'request_text' => $this->faker->text, | ||
'annotation_id' => ImageAnnotation::factory(), | ||
'user_id' => User::factory(), | ||
]; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.