1
0
Fork 0
mirror of https://github.com/prurigro/hypothetical.git synced 2025-03-09 05:49:58 -04:00
hypothetical/app/Models/Subscriptions.php
2016-08-02 22:43:15 -04:00

16 lines
344 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();
}
}