dishplanner/app/Models/Planner.php
myrmidex 561750dc83 FOSS pivot: retire SaaS, demo, and APP_MODE plumbing (#37 #38 #39 #40 #41)
Remove Stripe/Cashier subscription billing, demo mode, and APP_MODE enum/helpers. Delete frontend-old/ and stale bin scripts. Adopt AGPL-3.0 (LICENSE.md, README, composer.json). Point Docker image, prod scripts, and README at forge.lvl0.xyz/lvl0/dishplanner.
2026-08-16 17:29:19 +02:00

44 lines
1,010 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
/**
* @property int $id
* @property static PlannerFactory factory($count = null, $state = [])
* @property Collection<User> $users
* @method static first()
* @method static create(array $array)
*/
class Planner extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable;
protected $fillable = [
'name', 'email', 'password',
];
protected $hidden = [
'password', 'remember_token',
];
protected $casts = [
'password' => 'hashed',
];
public function schedules(): HasMany
{
return $this->hasMany(Schedule::class);
}
public function users(): HasMany
{
return $this->hasMany(User::class);
}
}