Exception Class request does not exists in index.php
i have uploaded my laravel project to live server but its not working when i track code i get the execption that class request does not exists,please help me to find out the error
this is my file
index.php
you are trying to require public/bootstrap/autoload.php and public/bootstrap/app.php, which normally don't exist if you didn't put them there.
If the directory structure of your app is similar to the default directory structure, change the first three lines to
@tykus because my website is showing 500:internal server error unable to handle request,there for i have check the index.php and i come up with the exception 'class request does not exist'
Has the original 500 error actually directed you to the index.php file?
I would suspect that you have forgotten to alias (use App\Http\Request) the Request class in a controller/other class; but, the detail of this will be in the Exception.
by default my site is showing the error i have reported in last reply,and when i track the index.php the line $request = Illuminate\Http\Request::capture() is throwing an exception that 'class request does not exists'
it would be great if you can specify which file and line has to be modified
That's the friendly message displayed in the browser - what is in your server's logs / Laravel logs?
It could be any number of things causing this; e.g. unsupported PHP version, failure to run composer install on your server, permissions, missing environment variables.
Also, is this the literal message: class request does not exist i.e. lowercase request - you probably have been working on a case-insensitive development machine and uploaded to a case-sensitive server - I would hunt that down if it was not a typo earlier!