-3

require __DIR__.'require __DIR__.'/../public/vendor/autoloader.php';';

I have have tried to run this and i get the following error

Parse error: syntax error, unexpected '.' in C:\xampp\htdocs\Laravel\demo\public\index.php on line 27

  • 1
    The syntax highlighting from Stackoverflow should be sufficient to tell you what's wrong... `require __DIR__.'/../public/vendor/autoloader.php';`. Your path needs to be wrapped in quotes, and don't duplicate `require`. – Tim Lewis Sep 25 '19 at 15:46

1 Answers1

-1

You've somehow managed to paste the require call into another copy of itself.

The entire line should simply be:

require __DIR__.'/../public/vendor/autoloader.php';
ceejayoz
  • 176,543
  • 40
  • 303
  • 368