mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-14 12:42:31 -05:00
15 lines
342 B
PHP
15 lines
342 B
PHP
<?php namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Subscriptions extends Model
|
|
{
|
|
// the subscriptions table
|
|
protected $table = 'subscriptions';
|
|
|
|
// returns the list of all subscriptions
|
|
public static function getSubscriptions()
|
|
{
|
|
return self::orderBy('created_at', 'desc')->get();
|
|
}
|
|
}
|