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;
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue