mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-23 01:50:23 -05:00
15 lines
335 B
PHP
15 lines
335 B
PHP
<?php namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Contact extends Model
|
|
{
|
|
// the contact table
|
|
protected $table = 'contact';
|
|
|
|
// returns the list of all contact submissions
|
|
public static function getContactSubmissions()
|
|
{
|
|
return self::orderBy('created_at', 'desc')->get();
|
|
}
|
|
}
|