hypothetical/app/Models/Contact.php

16 lines
335 B
PHP
Raw Normal View History

<?php namespace App\Models;
2016-01-03 19:08:53 -05:00
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();
}
2016-01-03 19:08:53 -05:00
}