Add user based bots and policy
All checks were successful
Deploy App / deploy (push) Successful in 9s

This commit is contained in:
2025-08-31 14:27:42 +02:00
parent ed74c14f8d
commit 75be85e608
8 changed files with 69 additions and 78 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Str;
@@ -58,4 +59,9 @@ class User extends Authenticatable
->map(fn ($word) => Str::substr($word, 0, 1))
->implode('');
}
public function bots(): HasMany
{
return $this->hasMany(Bot::class);
}
}