3

laravel on xampp this error

Parse error: syntax error, unexpected '?' in /Applications/XAMPP/xamppfiles/htdocs/wedservice/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233

php artisan serve is perfectly working (Mac)???

Sohel0415
  • 9,523
  • 21
  • 30
kobi
  • 184
  • 2
  • 14
  • 1
    Your question needs clarification – Prince Lionel N'zi Jan 30 '18 at 11:39
  • Which version of Laravel and php do you have? – Brotzka Jan 30 '18 at 11:53
  • Possible duplicate of [this question](/https://stackoverflow.com/questions/45992685/php-parse-error-syntax-error-unexpected-in-helpers-php-233) or [this](https://stackoverflow.com/questions/45992685/php-parse-error-syntax-error-unexpected-in-helpers-php-233/45992741) – Brotzka Jan 30 '18 at 11:55
  • You don't need to put your laravel project inside htdocs folder. Just put your project anywhere else and run `php artisan serve` and then open `localhost:8000` in browser – Shubham Pokhriyal Jan 30 '18 at 12:01
  • Ya , localhost:8000 is working ,by the way xampp also should work but that server got error unexpected '?' in /Applications/XAMPP/xamppfiles/htdocs/wedservice/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233 – kobi Jan 30 '18 at 15:27

1 Answers1

1

may be permission issues .. 1)give permission to all files and folder or 2)uninstall and re-install Xampp.give all rights

Madhu Nair
  • 428
  • 1
  • 7
  • 20