-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
befef64
commit 0fd5c15
Showing
11 changed files
with
432 additions
and
157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Enjin\Platform\Beam\Database\Factories; | ||
|
||
use Enjin\Platform\Beam\Models\BeamPack; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class BeamPackFactory extends Factory | ||
{ | ||
/** | ||
* The name of the factory's corresponding model. | ||
* | ||
* @var BeamPack | ||
*/ | ||
protected $model = BeamPack::class; | ||
|
||
/** | ||
* Define the model's default state. | ||
* | ||
* @return array<string, mixed> | ||
*/ | ||
public function definition() | ||
{ | ||
return [ | ||
'is_claimed' => fake()->boolean(), | ||
'code' => fake()->text(), | ||
'nonce' => 1, | ||
]; | ||
} | ||
} |
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
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,36 @@ | ||
<?php | ||
|
||
namespace Enjin\Platform\Beam\GraphQL\Types\Input; | ||
|
||
use Rebing\GraphQL\Support\Facades\GraphQL; | ||
|
||
class RemoveBeamPackType extends InputType | ||
{ | ||
/** | ||
* Get the input type's attributes. | ||
*/ | ||
public function attributes(): array | ||
{ | ||
return [ | ||
'name' => 'RemoveBeamPack', | ||
'description' => __('enjin-platform-beam::input_type.remove_beam_pack.description'), | ||
]; | ||
} | ||
|
||
/** | ||
* Get the input type's fields. | ||
*/ | ||
public function fields(): array | ||
{ | ||
return [ | ||
'id' => [ | ||
'type' => GraphQL::type('Int!'), | ||
'description' => __('enjin-platform-beam::input_type.beam_pack.field.id'), | ||
], | ||
'tokenIds' => [ | ||
'type' => GraphQL::type('[IntegerRangeString!]'), | ||
'description' => __('enjin-platform-beam::mutation.remove_tokens.args.tokenIds'), | ||
], | ||
]; | ||
} | ||
} |
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
Oops, something went wrong.