mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 16:04:10 -05:00
16 lines
337 B
PHP
16 lines
337 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();
|
|
}
|
|
|
|
}
|