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"; } }
-
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