Do you know how to install a specific version of laravel?
I want to install version 5.1.0 or 5.0 , The latest version as of this post is published is 5.1.22
The reason why I want to install a specific version is because the routings at the beginning of Sir Jeffrey Way's tutorial of Laravel 5 prompts me with an error at the beggining of the tutorial.
This is the wrong composer.json file. I'm talking about your project's composer.json file. The one you've shown is for the homestead box.
@redshot if you run the command I showed above to create a new project, that will create a composer.json file for you and pull in the relevant dependencies. You shouldn't need to do anything else with it, until you start adding dependencies of your own.
Anyway, what is the error you were getting, as bashy mentioned; let's get to the bottom of that rather than reverting to using an older version.
This is my static routes.php file code:
Route::get('contact', 'WelcomeController@contact');
This is my WelcomeController:
class WelcomeController extends Controller
{
public function index() {
return view('welcome');
}
public function contact() {
return 'Contact Me';
}
}
When i access http://laravel5.dev:8000/contact in a browser. The error is: Sorry, the page you are looking for could not be found. NotFoundHttpException in RouteCollection.php line 161: