I'm new to Laravel and I'm just following some tutorial blogs but I'm stuck at early stage.
Here is my Route
Route::resource('ip', 'IpController');
Route::get("index","IpController@view");
and here is my controller
<?php
class IpController extends BaseController {
public function index()
{
return View::make('hello');
}
}
here is how I access the page
<a href="{{ URL() }}/ip/index">IP</a>
I do what the tutorials says but I'm confused why I've got this error when accessing the page.
Class IpController does not exist
May i know what i've done wrong and how can i fix it? TIA!