It works for the version of 5.0 upto 5.4
1-First of all goto public directory.
2-Pick up two files from there.
i-index.php
ii-.htaccess
3-Move both of these file to the root folder.
4- Now goto index.php file and change these two lines..
require __DIR__.'/../bootstrap/autoload.php'; $app = require_once __DIR__.'/../bootstrap/app.php';
5- Replace above lines with these lines.
require __DIR__.'/bootstrap/autoload.php'; $app = require_once __DIR__.'/bootstrap/app.php';
6- Now goto .htacess file which is now placed in your root directory.
Just put one line there inside …
RewriteCond %{REQUEST_URI} !^/public/
Now the last and the most important point is that:
Most of the people say that their problem is not solved just because.
They don’t refresh their cache.
Just refresh your cache once otherwise it will not work..
Thankyou. I hope you enjoyed it.