for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers;
use App\DataTables\UsersDataTable;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class UsersController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
*/
public function __construct()
$this->middleware('auth');
}
* Display index page and process dataTable ajax request.
* @param \App\DataTables\UsersDataTable $dataTable
* @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
public function index(UsersDataTable $dataTable)
return $dataTable->render('users.index');
* Show create user page.
* @return \BladeView|bool|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function create()
return view('users.create');
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.