mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 07:54:11 -05:00
Clean up formatting in the models
This commit is contained in:
parent
e61a1f5558
commit
753a169c74
2 changed files with 10 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue