First Commit

This commit is contained in:
Konstantinos Arvanitakis
2026-07-03 16:42:22 +03:00
commit b16413ff9a
125 changed files with 20420 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Modules\Core\Customer\Models\Customer as CoreCustomer;
class Customer extends CoreCustomer
{
//
}
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Models;
use Modules\Core\Auth\Models\Staff as CoreStaff;
class Staff extends CoreStaff
{
public function getMorphClass(): string
{
return 'staff';
}
}
+55
View File
@@ -0,0 +1,55 @@
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Database\Factories\UserFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Lunar\Base\LunarUser as LunarUserInterface;
use Lunar\Base\Traits\LunarUser;
use Modules\Core\Auth\Events\UserCreated;
class User extends Authenticatable implements LunarUserInterface
{
use LunarUser;
/** @use HasFactory<UserFactory> */
use HasFactory, Notifiable;
protected $dispatchesEvents = [
'created' => UserCreated::class,
];
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'email',
];
/**
* The attributes that should be hidden for serialization.
*
* @var list<string>
*/
protected $hidden = [
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
];
}
}