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(); } + }