Add user based bots and policy
All checks were successful
Deploy App / deploy (push) Successful in 9s
All checks were successful
Deploy App / deploy (push) Successful in 9s
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Models\Bot;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Jantinnerezo\LivewireAlert\Facades\LivewireAlert;
|
||||
use Livewire\Component;
|
||||
|
||||
@@ -12,7 +13,7 @@ class BotsList extends Component
|
||||
|
||||
public function mount()
|
||||
{
|
||||
$this->bots = \App\Models\Bot::all();
|
||||
$this->bots = Auth::user()->bots;
|
||||
}
|
||||
|
||||
public function toggleBot($botId)
|
||||
|
||||
Reference in New Issue
Block a user