for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Transmissor\Http\Controllers\User;
use Transmissor\Http\Controllers\User\Controller;
use Auth;
class NotificationsController extends Controller
{
public function unread()
if (Auth::user()->notification_count > 0 && Auth::user()->message_count == 0) {
return redirect()->route('profile.transmissor.notifications.index');
}
return redirect()->route('profile.transmissor.messages.index');
public function index(Request $request)
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$notifications = Auth::user()->notifications();
Auth::user()->notification_count = 0;
Auth::user()->save();
return view('siravel::components.modules.notifications.index', compact('notifications'));
public function count()
return Auth::user()->notification_count + Auth::user()->message_count;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.