for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Larapie\Actions\Attributes;
use Faker\Generator;
use Larapie\Actions\Attribute;
class IntegerAttribute extends Attribute
{
protected $cast = "int";
protected function rules()
return 'integer';
}
public function factory(Generator $faker)
return $faker->numberBetween(0, 1000);