From 753a169c74e9adf789553051430d8af738f04233 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 2 Aug 2016 22:43:15 -0400 Subject: [PATCH] Clean up formatting in the models --- app/Models/Contact.php | 9 +++++---- app/Models/Subscriptions.php | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/Models/Contact.php b/app/Models/Contact.php index c4302bb..273c741 100644 --- a/app/Models/Contact.php +++ b/app/Models/Contact.php @@ -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(); } + } diff --git a/app/Models/Subscriptions.php b/app/Models/Subscriptions.php index fab3987..2ffb48d 100644 --- a/app/Models/Subscriptions.php +++ b/app/Models/Subscriptions.php @@ -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(); } + }