1
0
Fork 0
mirror of https://github.com/prurigro/hypothetical.git synced 2025-01-14 02:11:01 -05:00
hypothetical/app/Models/Subscriptions.php

16 lines
342 B
PHP
Raw Normal View History

<?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();
}
}