for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Controllers;
use Auth;
class UserController 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');
}
public function showProfile()
$controller = new AdminController();
return $controller->editUser(Auth::user()->id);
public function logout()
Auth::logout();
return redirect()->intended('login');
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.