classify admin
This commit is contained in:
25
app/Models/ContactUs.php
Normal file
25
app/Models/ContactUs.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ContactUs extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'contact_us';
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'email',
|
||||
'phone',
|
||||
'subject',
|
||||
'message'
|
||||
];
|
||||
|
||||
public function scopeSort($query, $column, $order) {
|
||||
$query = $query->orderBy($column, $order);
|
||||
return $query->select('contact_us.*');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user