Files
vuefilemanager/app/Http/Controllers/General/PricingController.php
T
2020-06-05 16:48:11 +02:00

23 lines
449 B
PHP

<?php
namespace App\Http\Controllers\General;
use App\Http\Controllers\Controller;
use App\Http\Resources\PricingCollection;
use Illuminate\Http\Request;
class PricingController extends Controller
{
/**
* Get all active plans
*
* @return PricingCollection
*/
public function index() {
return new PricingCollection(
app('rinvex.subscriptions.plan')->where('is_active', 1)->get()
);
}
}