it shows an error: Call to undefined method AppHttpControllersProfileController::middleware()
<code>class ProfileController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
}
</code>
<code>class ProfileController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
}
</code>
class ProfileController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
}
expecting it to work as the tutorial!
New contributor
user20734886 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1