mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2025-08-05 13:04:22 -04:00
Initial Commit
This commit is contained in:
commit
cc2af611e1
148 changed files with 54234 additions and 0 deletions
31
database/factories/TipFactory.php
Normal file
31
database/factories/TipFactory.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Tip;
|
||||
use App\Models\Meme;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class TipFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = Tip::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'meme_id' => Meme::all()->random()->id,
|
||||
'amount' => $this->faker->randomFloat($nbMaxDecimals = NULL, $min = 0, $max = 1),
|
||||
'tx' => $this->faker->bothify('??#?#?###??#???#?#?###??#???#?#?###??#???#?#?###??#??##??#?#?###??#???#?#?###??#???#?#?###??#??'),
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue