ok
Direktori : /home2/selectio/www/3-idiots/app/Http/Controllers/api/v1/ |
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); } } }