Do you have a route to imgweb2 in router.php? If so please include the snippet that defines the route.
THe only thing i have in the routes.php is: Route::get('/', function() { return View::make('hello'); });
Right so your problem has nothing to do with apache... Everything lives in your app dir. Take a look at the docs on routing. You'll need a route like this to get a response:
Route::get('/imgweb2', function() { return View::make('hello'); });
A more sophisticated implementation would look like this:
Route::get('/imgweb2', "ImageController@index");
where you have a controller named ImageController which lives in app/controllers. The controller would then render and return a view (which would typically live in app/views
Good Luck!
please give me an example to get the controller to point to mainmenu.html
Sorry man - haven't got the time to type it all up but it's in the docs... look at the views section. Laravel doesn't serve straight HTML docs from the file system... it's all managed through routes, controllers and views (which are blade templates)
Please all I need is a kick start. My controller is :
<?php class MainMenuController extends BaseController { public function index() { Route::get('MainMenu', function() { return View::make('MainMenu'); }); } } My route is: Route::get('/imgweb2', "MainMenuController@index"); When I type localhost:8000/imgweb2------I get a blank page but no errors so I must almost be therecheckout laracasts, it does have videos to help you kickstart your project.
https://laracasts.com/series/laravel-5-from-scratch/episodes/1
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community