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; use Illuminate\Database\Eloquent\Model;
class Contact extends Model class Contact extends Model {
{
// the contact table // The contact table
protected $table = 'contact'; protected $table = 'contact';
// returns the list of all contact submissions // Returns the list of all contact submissions
public static function getContactSubmissions() public static function getContactSubmissions()
{ {
return self::orderBy('created_at', 'desc')->get(); return self::orderBy('created_at', 'desc')->get();
} }
} }

View file

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