first commit

This commit is contained in:
2026-03-26 09:28:14 +07:00
commit fa46a144d8
20180 changed files with 2692766 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = [
'id',
'category_code',
'category_name',
'category_status',
'category_default'
];
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
protected $fillable = [
'id',
'contact_name',
'contact_email',
'contact_phone',
'contact_content',
'contact_status'
];
}
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Parameter extends Model
{
protected $fillable = [
'id',
'parameter_key',
'parameter_name',
'parameter_value',
'parameter_order'
];
}
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = [
'id',
'post_url',
'post_image',
'post_title',
'post_summary',
'post_content',
'post_author',
'post_status',
'post_like'
];
}
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PostCategory extends Model
{
protected $fillable = [
'id',
'post_id',
'category_id'
];
}
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PostComment extends Model
{
protected $fillable = [
'id',
'post_id',
'post_comment',
'user_name',
'comment_like'
];
}
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Prize extends Model
{
protected $fillable = [
'id',
'prize_name',
'prize_image',
'prize_content',
'prize_status',
'prize_number',
'prize_order',
'user_id'
];
}
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PrizeUser extends Model
{
protected $fillable = [
'id',
'user_id',
'prize_id'
];
}
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Role extends Model
{
protected $fillable = [
'id',
'role_code',
'role_name',
'role_route',
'role_order',
'role_status',
'is_menu_backend',
'is_menu_frontend',
'role_param',
'role_div_id',
'role_icon'
];
}
+54
View File
@@ -0,0 +1,54 @@
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'email',
'password',
'status',
'confirmation_string',
'name',
'phone',
'job',
'spined'
];
/**
* The attributes that should be hidden for serialization.
*
* @var list<string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class UserRole extends Model
{
protected $fillable = [
'id',
'role_id',
'user_id'
];
}