mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -05:00
25 lines
429 B
PHP
25 lines
429 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Subscriptions extends Model
|
|
{
|
|
/**
|
|
* The subscriptions table
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'subscriptions';
|
|
|
|
/**
|
|
* Returns the list of all subscriptions
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function getSubscriptions()
|
|
{
|
|
return self::orderBy('created_at', 'desc')->get();
|
|
}
|
|
}
|