hypothetical/app/Models/Subscriptions.php

17 lines
344 B
PHP
Raw Normal View History

<?php namespace App\Models;
use Illuminate\Database\Eloquent\Model;
2016-08-02 22:43:15 -04:00
class Subscriptions extends Model {
// The subscriptions table
protected $table = 'subscriptions';
2016-08-02 22:43:15 -04:00
// Returns the list of all subscriptions
public static function getSubscriptions()
{
return self::orderBy('created_at', 'desc')->get();
}
2016-08-02 22:43:15 -04:00
}