I am trying to get a Laravel
project running on my localhost
. I've download composer
and run the following command in my web directory
of the localhost
and it creates a laravel
project for me which I can then navigate through and explore the various files and folders it contains. I can even open up the structure by going to this URL
:
composer create-project laravel/laravel laravel-test
http://localhost/learning-laravel/ <---- Displays the files in my browser.
My problem is that by default should the public
directory not get opened and the user redirected to the home
view as this is what it says in the routes.php
file
Route::get('/', function()
{
return View::make('hello');
});
When I go to this URL
I get an error http://localhost/laravel-test/public/
Woops, looks like something went wrong
Does anyone know why this is happening?
EDIT: set debug
to true
in the app.php
file located in the config folder. Apparently this is my issue:
RuntimeException
OpenSSL extension is required
apache2.4.9\bin\php.ini
extension=php_openssl.dll
php5.5.12\php.ini
extension=php_openssl.dll
I am using WAMP
I've ensured that the following extensions are uncommented in my php.ini
files.
have you restarted apache since you updated your php.ini files?
EDIT:
If you haven't, try installing openssl from a binary. I believe the php extension is just an adapter. https://www.openssl.org/related/binaries.html