hypothetical/app/Models/Contact.php
2016-09-03 00:30:02 -04:00

25 lines
422 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
/**
* The contact table
*
* @var string
*/
protected $table = 'contact';
/**
* Returns the list of all contact submissions
*
* @return array
*/
public static function getContactSubmissions()
{
return self::orderBy('created_at', 'desc')->get();
}
}