File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/dynastyresort.com/app/Models/ContactUsModel.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Mail\GenericFormSubmissionMail; use Illuminate\Support\Facades\Mail; class ContactUsModel extends Model { use HasFactory; protected $table = "contact_us"; const ID = "id"; const NAME = "name"; // const ADDRESS = "address"; // const LAST_NAME = "last_name"; const EMAIL = "email"; // const COUNTRY_CODE = "country_code"; const PHONE_NUMBER = "phone_number"; const MESSAGE = "message"; const IP_ADDRESS = "ip_address"; const USER_AGENT = "user_agent"; const STATUS = "status"; const CREATED_AT = "created_at"; const UPDATED_AT = "updated_at"; // protected static function booted() // { // static::created(function ($model) { // Mail::to('info@dynastyresort.com')->send( // new GenericFormSubmissionMail($model->toArray(), 'New Contact Us Submission') // ); // }); // } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings