mardi 31 mai 2016

Laravel gives me Object not found! The requested URL was not found on this server. 404 error

I have created one controller file as per below and routes for it. i want to display Hello World message on my website by entering this url.http://localhost/mylaravel/mycontroller But is's show me 404 error. 1. Controller File: namespace App\Http\Controllers; class MyController extends BaseController { public function loadview() { echo "Hello World"; } }

  1. Routes file: Route::get('/', function () { return view('welcome'); });

    Route::get('mycontroller','MyController@loadview');



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/25xLF28
via IFTTT

Aucun commentaire:

Enregistrer un commentaire