Clean up formatting in the models

This commit is contained in:
Kevin MacMartin 2016-08-02 22:43:15 -04:00
parent e61a1f5558
commit 753a169c74
2 changed files with 10 additions and 8 deletions

View file

@ -2,14 +2,15 @@
use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
// the contact table
class Contact extends Model {
// The contact table
protected $table = 'contact';
// returns the list of all contact submissions
// Returns the list of all contact submissions
public static function getContactSubmissions()
{
return self::orderBy('created_at', 'desc')->get();
}
}

View file

@ -2,14 +2,15 @@
use Illuminate\Database\Eloquent\Model;
class Subscriptions extends Model
{
// the subscriptions table
class Subscriptions extends Model {
// The subscriptions table
protected $table = 'subscriptions';
// returns the list of all subscriptions
// Returns the list of all subscriptions
public static function getSubscriptions()
{
return self::orderBy('created_at', 'desc')->get();
}
}