Laravel new project routing not working? This is the routes.php file:
<?php
Route::get('/', function () {
return view('welcome');
});
Route::get('ID/{id}',function($id){
echo 'ID: '.$id;
});
Route::get('/user/{name?}',function($name = 'Virat Gandhi'){
echo "Name: ".$name;
});
So what i have done is this. I started the local laravel development server with: php artisan serve. Just like the book told me that i am going through (Laravel 5). But now only the first routing works '/' which uses the welcome view blade template.
But all other routings don't work >.<
Can someone please help me? I'm stuck.
PS: I have some beginners experience with Python/Django and PHP/Symfony. So i really don't know what the problem is. But i have no experience with .htacess files and apache files etc. Maybe that's the problem?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2G9Qrvo
via IFTTT
Aucun commentaire:
Enregistrer un commentaire