ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/app/Http/Controllers/api/v1/
Upload File :
Current File : /home2/selectio/www/3-idiots/app/Http/Controllers/api/v1/NotificationController.php

<?php

namespace App\Http\Controllers\api\v1;

use App\Http\Controllers\Controller;
use App\Model\Notification;

class NotificationController extends Controller
{
    public function get_notifications()
    {
        try {
            return response()->json(Notification::active()->orderBy('id','DESC')->get(), 200);
        } catch (\Exception $e) {
            return response()->json([], 200);
        }
    }
}

Zerion Mini Shell 1.0