| 1 | <?php |
||
| 9 | class UsersController extends Controller |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Create a new controller instance. |
||
| 13 | * |
||
| 14 | * @return void |
||
|
|
|||
| 15 | */ |
||
| 16 | public function __construct() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Display index page and process dataTable ajax request. |
||
| 23 | * |
||
| 24 | * @param \App\DataTables\UsersDataTable $dataTable |
||
| 25 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
| 26 | */ |
||
| 27 | public function index(UsersDataTable $dataTable) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Show create user page. |
||
| 34 | * |
||
| 35 | * @return \BladeView|bool|\Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
| 36 | */ |
||
| 37 | public function create() |
||
| 41 | } |
||
| 42 |
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.