for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace plunner\Http\Controllers\Employees;
use plunner\Http\Controllers\Controller;
use plunner\Http\Requests;
use plunner\Employee;
class EmployeesController extends Controller
{
/**
* @var plunner/Employee
*/
private $user;
$user
This check marks private properties in classes that are never used. Those properties can be removed.
* ExampleController constructor.
public function __construct()
config(['auth.model' => \plunner\Employee::class]);
config(['jwt.user' => \plunner\Employee::class]);
$this->middleware('jwt.authandrefresh:mode-en');
}
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
public function index()
$employee = \Auth::user();
return $employee;
//TODO this is not RESTFUL, but it can be ok
* Display the specified resource.
* @param int $id
public function show($id)
$employee = Employee::findOrFail($id);
$this->authorize($employee);
//TODO why this? when we need this?
This check marks private properties in classes that are never used. Those properties can be removed.