diff --git a/app/Livewire/Contests.php b/app/Livewire/Contests.php
index 8231165..4d5077d 100644
--- a/app/Livewire/Contests.php
+++ b/app/Livewire/Contests.php
@@ -32,7 +32,7 @@ class Contests extends Component
flash()->success('Concours '.$contest->name.' en cours de participation');
// Récupération des comptes activés
- $accounts = Account::where('enable', true)->get();
+ $accounts = Account::where('play', true)->get();
foreach ($accounts as $account) {
ProcessTweet::dispatch($contest->id, $account->id); // Envoi du tweet pour participer
@@ -76,4 +76,4 @@ class Contests extends Component
'contests' => $contests
]);
}
-}
\ No newline at end of file
+}
diff --git a/app/Nova/Account.php b/app/Nova/Account.php
index 4dbae8e..f884057 100644
--- a/app/Nova/Account.php
+++ b/app/Nova/Account.php
@@ -51,6 +51,7 @@ class Account extends Resource
return [
ID::make()->sortable(),
Boolean::make('Enable'),
+ Boolean::make('Play'),
Text::make('Name'),
Text::make('Password'),
Text::make('Rambler Email'),
diff --git a/resources/views/accounts/index.blade.php b/resources/views/accounts/index.blade.php
index 7a89d97..7e946b3 100644
--- a/resources/views/accounts/index.blade.php
+++ b/resources/views/accounts/index.blade.php
@@ -21,6 +21,7 @@
ID
+ Play
Nom
Accès
Webmail
@@ -30,6 +31,7 @@