⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.138
Server IP:
186.226.58.36
Server:
Linux da02.sh15.net 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Server Software:
Apache/2
PHP Version:
8.1.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
redesystem
/
public_html
/
sys
/
app
/
Models
/
View File Name :
Currency.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * App\Models\Currency * * @property int $id * @property string $name * @property string $icon * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * * @method static Builder|Currency newModelQuery() * @method static Builder|Currency newQuery() * @method static Builder|Currency query() * @method static Builder|Currency whereCreatedAt($value) * @method static Builder|Currency whereIcon($value) * @method static Builder|Currency whereId($value) * @method static Builder|Currency whereName($value) * @method static Builder|Currency whereUpdatedAt($value) * * @mixin \Eloquent */ class Currency extends Model { use HasFactory; protected $table = 'currencies'; protected $fillable = ['name', 'icon', 'code']; protected $casts = [ 'name' => 'string', 'icon' => 'string', 'code' => 'string', ]; public static $rules = [ 'name' => 'required|string|unique:currencies,name', 'icon' => 'required|unique:currencies,icon', 'code' => 'required|min:3|max:3', ]; }