app/app/Models/Planner.php

37 lines
835 B
PHP

<?php
namespace App\Models;
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\Cashier\Billable;
use Laravel\Sanctum\HasApiTokens;
/**
* @property int $id
* @property static PlannerFactory factory($count = null, $state = [])
* @method static first()
*/
class Planner extends Authenticatable
{
use Billable, 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);
}
}