When your project is set up using browserify and you are proxying to enable live reload and css injection, debugbar fails to load with the following console error
Uncaught SyntaxError: Invalid or unexpected token
The offending line in the script is
phpdebugbar.addDataSet({"__meta":{"id":"X0b17215a14e2d8e3f6979887c93109af","datetime":"2017-12-08 10:00:39","utime":1512727239.0877830982208251953125,"method":"GET","uri":"\/","ip":"127.0.0.1"},"php":{"version":"7.1.9","interface":"cli-server"},"messages":{"count":0,"messages":[]},"time":{"start":1512727238.92189788818359375,"end":1512727239.0878059864044189453125,"duration":0.1659080982208251953125,"duration_str":"165.91ms","measures":[{"label":"Booting","start":1512727238.92189788818359375,"relative_start":0,"end":1512727239.034492969512939453125,"relative_end":1512727239.034492969512939453125,"duration":0.112595081329345703125,"duration_str":"112.6ms","params":[],"collector":null},{"label":"Application","start":1512727239.03676891326904296875,"relative_start":0.11487102508544921875,"end":1512727239.0878078937530517578125,"relative_end":1.9073486328125e-6,"duration":0.0510389804840087890625,"duration_str":"51.04ms","params":[],"collector":null}]},"memory":{"peak_usage":18485696,"peak_usage_str":"17.63MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"nb_templates":6,"templates":[{"name":"welcome (resources\/views\/welcome.blade.php)","param_count":4,"params":["latestposts","inspirationposts","shopitems","pagedetails"],"type":"blade"},{"name":"partials.slider (resources\/views\/partials\/slider.blade.php)","param_count":9,"params":["obLevel","__env","app","errors","latestposts","inspirationposts","shopitems","pagedetails","some"],"type":"blade"},{"name":"layouts.master (resources\/views\/layouts\/master.blade.php)","param_count":8,"params":["obLevel","__env","app","errors","latestposts","inspirationposts","shopitems","pagedetails"],"type":"blade"},{"name":"partials.topbar (resources\/views\/partials\/topbar.blade.php)","param_count":8,"params":["obLevel","__env","app","errors","latestposts","inspirationposts","shopitems","pagedetails"],"type":"blade"},{"name":"partials.nav (resources\/views\/partials\/nav.blade.php)","param_count":9,"params":["obLevel","__env","app","errors","latestposts","inspirationposts","shopitems","pagedetails","some"],"type":"blade"},{"name":"partials.footer (resources\/views\/partials\/footer.blade.php)","param_count":8,"params":["obLevel","__env","app","errors","latestposts","inspirationposts","shopitems","pagedetails"],"type":"blade"}]},"route":{"uri":"GET \/","middleware":"web","controller":"App\Http\Controllers\SiteController@index","namespace":"App\Http\Controllers","prefix":null,"where":[],"as":"home","file":"app\/Http\/Controllers\/SiteController.php:26-33"},"queries":{"nb_statements":5,"nb_failed_statements":0,"accumulated_duration":0.0072200000000000007227551890309769078157842159271240234375,"accumulated_duration_str":"7.22ms","statements":[{"sql":"select * from posts order by created_at desc limit 9","type":"query","params":[],"bindings":[],"hints":["Use SELECT <\/code> only if you need all columns from table","The SELECT<\/code> statement has no \/;q=0.8\"\n ]\n \"upgrade-insecure-requests\" => array:1 [\n 0 => \"1\"\n ]\n \"user-agent\" => array:1 [\n 0 => \"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36\"\n ]\n \"connection\" => array:1 [\n 0 => \"close\"\n ]\n \"host\" => array:1 [\n 0 => \"//localhost:3000"\n ]\n]","request_server":"array:22 [\n \"DOCUMENT_ROOT\" => \"\/Applications\/XAMPP\/xamppfiles\/htdocs\/AfricBrideL5\/public\"\n \"REMOTE_ADDR\" => \"127.0.0.1\"\n \"REMOTE_PORT\" => \"58404\"\n \"SERVER_SOFTWARE\" => \"PHP 7.1.9 Development Server\"\n \"SERVER_PROTOCOL\" => \"HTTP\/1.1\"\n \"SERVER_NAME\" => \"127.0.0.1\"\n \"SERVER_PORT\" => \"8000\"\n \"REQUEST_URI\" => \"\/\"\n \"REQUEST_METHOD\" => \"GET\"\n \"SCRIPT_NAME\" => \"\/index.php\"\n \"SCRIPT_FILENAME\" => \"\/Applications\/XAMPP\/xamppfiles\/htdocs\/AfricBrideL5\/public\/index.php\"\n \"PHP_SELF\" => \"\/index.php\"\n \"HTTP_COOKIE\" => \"PHPSESSID=9fe9fd4fcb36406000a5c9cf65737b5d; io=xupLKuOu-O91x-ooAADl; XSRF-TOKEN=eyJpdiI6Im5GV0FPaHV1bjhkcFZzYzE0Q3BhbWc9PSIsInZhbHVlIjoiTEEzdW02T3VvamtmbzMrYnVjK2NhNDE1RElWenNtU011Zks4bmlxVUlyWUhkY2hsT3VcL1ZVcFRBd3o5TXVnT1lNMDlWM3BYd211MXNhRkxsS2FRaVJRPT0iLCJtYWMiOiJiNzhhZDU2YjczNGQ3ZTVhYmE2OWU3NGFkYzlkMzQwYjcyNWNmMjZlMTNhNzgyMjdmNzY3ODZhNGViNWZlMzVlIn0%3D; african_bride_session=eyJpdiI6IkEwT1A5dnVwMWpueTVCcncrSHQ3dmc9PSIsInZhbHVlIjoiSDZnZ3Y4bFZxQlpoXC9ycDZsQ0czdHBKTmJ6M1wvT0R6aEYxZ3VRSElCYnMxWGgrdFlqSVhQXC9nYldXbWF4c3RcL29na2VweVBUWFpnajZtTEtLWjhnVnNBPT0iLCJtYWMiOiI3OTJhYmVmYTlkMTU5ZDA0MmE4M2Q5NmZmODliODhhMTQ4N2Q0MzRjYzJhMzdiNzhkM2RjYWFlNTVhMWIyZDhjIn0%3D\"\n \"HTTP_ACCEPT_LANGUAGE\" => \"en-US,en;q=0.8,la;q=0.6\"\n \"HTTP_ACCEPT_ENCODING\" => \"identity\"\n \"HTTP_ACCEPT\" => \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,\/*;q=0.8\"\n \"HTTP_UPGRADE_INSECURE_REQUESTS\" => \"1\"\n \"HTTP_USER_AGENT\" => \"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36\"\n \"HTTP_CONNECTION\" => \"close\"\n \"HTTP_HOST\" => \"//localhost:3000"\n \"REQUEST_TIME_FLOAT\" => 1512727238.9219\n \"REQUEST_TIME\" => 1512727238\n]","request_cookies":"array:4 [\n \"PHPSESSID\" => null\n \"io\" => null\n \"XSRF-TOKEN\" => \"Cpm5Y3dXUG3WKWbMyPz1WZsa9wawBMNZ7DDN9HY6\"\n \"african_bride_session\" => \"xpOnzXNf6hWzxl4aCewvhv46ka1XwwZOvEudpnxJ\"\n]","response_headers":"array:5 [\n \"cache-control\" => array:1 [\n 0 => \"no-cache, private\"\n ]\n \"date\" => array:1 [\n 0 => \"Fri, 08 Dec 2017 10:00:39 GMT\"\n ]\n \"content-type\" => array:1 [\n 0 => \"text\/html; charset=UTF-8\"\n ]\n \"set-cookie\" => array:2 [\n 0 => \"XSRF-TOKEN=eyJpdiI6ImFsMW9CVUZlbFA4Y1NST1FpYzcza1E9PSIsInZhbHVlIjoiKzlSWTV4OUVzYkFKZ2tGT3VzSFc0dkRYZGpLZ3hZSEZtWnprbFZ6UUt2XC9SWUFLNGg3UnU5Tkw1VTJvZ0xUSGZmQ3p0MHUrUmJXcUZMUU1HM254RDRRPT0iLCJtYWMiOiJjYmFkZmRkNzUzMWQzOTVmMzczNWIwMTMzZTlkZGVhYmMyMWM3YjNlNGJhYWVkOGQyMmY5YTQ3ODVhZDlmZWI3In0%3D; expires=Fri, 08-Dec-2017 12:00:39 GMT; max-age=7200; path=\/\"\n 1 => \"african_bride_session=eyJpdiI6IkxpMzA0UTVFdWc5U0dFYnlOVkhqNHc9PSIsInZhbHVlIjoicTF6Z1RuWENHVGwwUXA3RVl6dU4rRmNNOGM5ZG5GdG9ySmYxSG5oa2VueFwvMVdheVBLMXN6QnUxSFhGNDh6QnJlb08zWnEyUExpSGVWQXdSbHgrMmpnPT0iLCJtYWMiOiJiZTlkOTdlYWNkNzUyMzk1NDY3YjUyZDI5YjFjZjdkYjcwN2VjYTk5MzJmM2ZmOThkNmE2NThkNjYwN2FmOGE5In0%3D; expires=Fri, 08-Dec-2017 12:00:39 GMT; max-age=7200; path=\/; httponly\"\n ]\n \"Set-Cookie\" => array:2 [\n 0 => \"XSRF-TOKEN=eyJpdiI6ImFsMW9CVUZlbFA4Y1NST1FpYzcza1E9PSIsInZhbHVlIjoiKzlSWTV4OUVzYkFKZ2tGT3VzSFc0dkRYZGpLZ3hZSEZtWnprbFZ6UUt2XC9SWUFLNGg3UnU5Tkw1VTJvZ0xUSGZmQ3p0MHUrUmJXcUZMUU1HM254RDRRPT0iLCJtYWMiOiJjYmFkZmRkNzUzMWQzOTVmMzczNWIwMTMzZTlkZGVhYmMyMWM3YjNlNGJhYWVkOGQyMmY5YTQ3ODVhZDlmZWI3In0%3D; expires=Fri, 08-Dec-2017 12:00:39 GMT; path=\/\"\n 1 => \"african_bride_session=eyJpdiI6IkxpMzA0UTVFdWc5U0dFYnlOVkhqNHc9PSIsInZhbHVlIjoicTF6Z1RuWENHVGwwUXA3RVl6dU4rRmNNOGM5ZG5GdG9ySmYxSG5oa2VueFwvMVdheVBLMXN6QnUxSFhGNDh6QnJlb08zWnEyUExpSGVWQXdSbHgrMmpnPT0iLCJtYWMiOiJiZTlkOTdlYWNkNzUyMzk1NDY3YjUyZDI5YjFjZjdkYjcwN2VjYTk5MzJmM2ZmOThkNmE2NThkNjYwN2FmOGE5In0%3D; expires=Fri, 08-Dec-2017 12:00:39 GMT; path=\/; httponly\"\n ]\n]","path_info":"\/","session_attributes":"array:4 [\n \"_token\" => \"Cpm5Y3dXUG3WKWbMyPz1WZsa9wawBMNZ7DDN9HY6\"\n \"_previous\" => array:1 [\n \"url\" => \"http:\/\/localhost:3000\"\n ]\n \"PHPDEBUGBAR_STACK_DATA\" => []\n \"_flash\" => array:2 [\n \"old\" => []\n \"new\" => []\n ]\n]"}}, "X0b17215a14e2d8e3f6979887c93109af");WHERE<\/code> clause and could examine many more rows than intended"],"backtrace":[{"index":12,"namespace":null,"name":"\/app\/Http\/Controllers\/SiteController.php","line":27},{"index":15,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":16,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":212},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":169},{"index":18,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":645},{"index":19,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":20,"namespace":"middleware","name":"bindings","line":41},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php","line":67},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":25,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":26,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php","line":49},{"index":27,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":28,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":29,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php","line":63},{"index":30,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":31,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":32,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php","line":37},{"index":33,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":34,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":35,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php","line":59},{"index":36,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":37,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":38,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":102},{"index":39,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":647},{"index":40,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":622},{"index":41,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":588},{"index":42,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":577},{"index":43,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php","line":176},{"index":44,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":46,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":47,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":48,"namespace":null,"name":"\/vendor\/fideloper\/proxy\/src\/TrustProxies.php","line":56},{"index":49,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149}],"duration":0.00156999999999999999798772076786690377048216760158538818359375,"duration_str":"1.57ms","stmt_id":"\/app\/Http\/Controllers\/SiteController.php:27","connection":"africa46_main"},{"sql":"select * from categories where categoryname = 'inspiration' limit 1","type":"query","params":[],"bindings":["inspiration"],"hints":["Use SELECT *<\/code> only if you need all columns from table","LIMIT<\/code> without ORDER BY<\/code> causes non-deterministic results, depending on the query execution plan"],"backtrace":[{"index":13,"namespace":null,"name":"\/app\/Post.php","line":39},{"index":14,"namespace":null,"name":"\/app\/Http\/Controllers\/SiteController.php","line":28},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":18,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":212},{"index":19,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":169},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":645},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":22,"namespace":"middleware","name":"bindings","line":41},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":25,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php","line":67},{"index":26,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":27,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":28,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php","line":49},{"index":29,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":30,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":31,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php","line":63},{"index":32,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":33,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":34,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php","line":37},{"index":35,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":36,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":37,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php","line":59},{"index":38,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":39,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":40,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":102},{"index":41,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":647},{"index":42,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":622},{"index":43,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":588},{"index":44,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":577},{"index":45,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php","line":176},{"index":46,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":48,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":49,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53}],"duration":0.000540000000000000006904199434387692235759459435939788818359375,"duration_str":"540\u03bcs","stmt_id":"\/app\/Post.php:39","connection":"africa46_main"},{"sql":"select * from posts where category_id = '1' limit 2","type":"query","params":[],"bindings":["1"],"hints":["Use SELECT *<\/code> only if you need all columns from table","LIMIT<\/code> without ORDER BY<\/code> causes non-deterministic results, depending on the query execution plan"],"backtrace":[{"index":12,"namespace":null,"name":"\/app\/Post.php","line":46},{"index":13,"namespace":null,"name":"\/app\/Http\/Controllers\/SiteController.php","line":28},{"index":16,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":212},{"index":18,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":169},{"index":19,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":645},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":21,"namespace":"middleware","name":"bindings","line":41},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php","line":67},{"index":25,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":26,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":27,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php","line":49},{"index":28,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":29,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":30,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php","line":63},{"index":31,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":32,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":33,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php","line":37},{"index":34,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":35,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":36,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php","line":59},{"index":37,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":38,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":39,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":102},{"index":40,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":647},{"index":41,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":622},{"index":42,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":588},{"index":43,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":577},{"index":44,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php","line":176},{"index":45,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":47,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":48,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":49,"namespace":null,"name":"\/vendor\/fideloper\/proxy\/src\/TrustProxies.php","line":56}],"duration":0.000529999999999999980675180477618368968251161277294158935546875,"duration_str":"530\u03bcs","stmt_id":"\/app\/Post.php:46","connection":"africa46_main"},{"sql":"select * from products order by created_at desc limit 12","type":"query","params":[],"bindings":[],"hints":["Use SELECT *<\/code> only if you need all columns from table","The SELECT<\/code> statement has no WHERE<\/code> clause and could examine many more rows than intended"],"backtrace":[{"index":12,"namespace":null,"name":"\/app\/Http\/Controllers\/SiteController.php","line":29},{"index":15,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":16,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":212},{"index":17,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":169},{"index":18,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":645},{"index":19,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":20,"namespace":"middleware","name":"bindings","line":41},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":23,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php","line":67},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":25,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":26,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php","line":49},{"index":27,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":28,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":29,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php","line":63},{"index":30,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":31,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":32,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php","line":37},{"index":33,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":34,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":35,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php","line":59},{"index":36,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":37,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":38,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":102},{"index":39,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":647},{"index":40,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":622},{"index":41,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":588},{"index":42,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":577},{"index":43,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php","line":176},{"index":44,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":46,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":47,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":48,"namespace":null,"name":"\/vendor\/fideloper\/proxy\/src\/TrustProxies.php","line":56},{"index":49,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149}],"duration":0.0040800000000000002930988785010413266718387603759765625,"duration_str":"4.08ms","stmt_id":"\/app\/Http\/Controllers\/SiteController.php:29","connection":"africa46_main"},{"sql":"select * from indexpage limit 1","type":"query","params":[],"bindings":[],"hints":["Use SELECT *<\/code> only if you need all columns from table","The SELECT<\/code> statement has no WHERE<\/code> clause and could examine many more rows than intended","LIMIT<\/code> without ORDER BY<\/code> causes non-deterministic results, depending on the query execution plan"],"backtrace":[{"index":15,"namespace":null,"name":"\/app\/Http\/Controllers\/SiteController.php","line":30},{"index":18,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/ControllerDispatcher.php","line":45},{"index":19,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":212},{"index":20,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Route.php","line":169},{"index":21,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":645},{"index":22,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":23,"namespace":"middleware","name":"bindings","line":41},{"index":24,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":25,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":26,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Middleware\/VerifyCsrfToken.php","line":67},{"index":27,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":28,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":29,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/View\/Middleware\/ShareErrorsFromSession.php","line":49},{"index":30,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":31,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":32,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware\/StartSession.php","line":63},{"index":33,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":34,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":35,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/AddQueuedCookiesToResponse.php","line":37},{"index":36,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":37,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":38,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Middleware\/EncryptCookies.php","line":59},{"index":39,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149},{"index":40,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53},{"index":41,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":102},{"index":42,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":647},{"index":43,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":622},{"index":44,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":588},{"index":45,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":577},{"index":46,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Http\/Kernel.php","line":176},{"index":47,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":30},{"index":49,"namespace":null,"name":"\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php","line":149}],"duration":0.0005000000000000000104083408558608425664715468883514404296875,"duration_str":"500\u03bcs","stmt_id":"\/app\/Http\/Controllers\/SiteController.php:30","connection":"africa46_main"}]},"swiftmailer_mails":{"count":0,"mails":[]},"auth":{"guards":{"web":"array:2 [\n \"name\" => \"Guest\"\n \"user\" => array:1 [\n \"guest\" => true\n ]\n]","api":"array:2 [\n \"name\" => \"Guest\"\n \"user\" => array:1 [\n \"guest\" => true\n ]\n]"},"names":""},"gate":{"count":0,"messages":[]},"session":{"_token":"Cpm5Y3dXUG3WKWbMyPz1WZsa9wawBMNZ7DDN9HY6","_previous":"array:1 [\n \"url\" => \"http:\/\/localhost:3000\"\n]","PHPDEBUGBAR_STACK_DATA":"[]","_flash":"array:2 [\n \"old\" => []\n \"new\" => []\n]"},"request":{"format":"html","content_type":"text\/html; charset=UTF-8","status_text":"OK","status_code":"200","request_query":"[]","request_request":"[]","request_headers":"array:8 [\n \"cookie\" => array:1 [\n 0 => \"PHPSESSID=9fe9fd4fcb36406000a5c9cf65737b5d; io=xupLKuOu-O91x-ooAADl; XSRF-TOKEN=eyJpdiI6Im5GV0FPaHV1bjhkcFZzYzE0Q3BhbWc9PSIsInZhbHVlIjoiTEEzdW02T3VvamtmbzMrYnVjK2NhNDE1RElWenNtU011Zks4bmlxVUlyWUhkY2hsT3VcL1ZVcFRBd3o5TXVnT1lNMDlWM3BYd211MXNhRkxsS2FRaVJRPT0iLCJtYWMiOiJiNzhhZDU2YjczNGQ3ZTVhYmE2OWU3NGFkYzlkMzQwYjcyNWNmMjZlMTNhNzgyMjdmNzY3ODZhNGViNWZlMzVlIn0%3D; african_bride_session=eyJpdiI6IkEwT1A5dnVwMWpueTVCcncrSHQ3dmc9PSIsInZhbHVlIjoiSDZnZ3Y4bFZxQlpoXC9ycDZsQ0czdHBKTmJ6M1wvT0R6aEYxZ3VRSElCYnMxWGgrdFlqSVhQXC9nYldXbWF4c3RcL29na2VweVBUWFpnajZtTEtLWjhnVnNBPT0iLCJtYWMiOiI3OTJhYmVmYTlkMTU5ZDA0MmE4M2Q5NmZmODliODhhMTQ4N2Q0MzRjYzJhMzdiNzhkM2RjYWFlNTVhMWIyZDhjIn0%3D\"\n ]\n \"accept-language\" => array:1 [\n 0 => \"en-US,en;q=0.8,la;q=0.6\"\n ]\n \"accept-encoding\" => array:1 [\n 0 => \"identity\"\n ]\n \"accept\" => array:1 [\n 0 => \"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,
I have tried to mark the exact area in bold but here it is http:\/\/localhost:3000\"\n ]\n.
I am using Laravel 5.5 and "barryvdh/laravel-debugbar": "^3.1", "laravel-mix": "^1.0", "browser-sync": "^2.18.13", "browser-sync-webpack-plugin": "^1.2.0".
My mix setup is
mix.js('resources/assets/js/app.js', 'public/js')
.extract(['jquery', 'axios', 'bootstrap-sass'])
.sass('resources/assets/sass/app.scss', 'public/css')
.options({
fileLoaderDirs: {
images: 'images',
},
postCss: [
require( 'postcss-fixes' )(), // add fallbacks for rem units and other fixes
require( 'postcss-merge-rules' )(), // merge rules
require( 'postcss-discard-duplicates' )() // remove duplicate rules
]
}
)
.autoload({
jquery: ['$','jQuery']
})
.version()
.sourceMaps();
mix.browserSync({
proxy: "localhost:8000",
browser: "google chrome",
});
For now I have resorted to using browsersync proxy only while still actively developing the site. Then when I am all done, I use only localhost:8000 and start to optimise my queries with debugbar. It would be nice to not have to split this into two seperate development phases though.
Thanks for an awesome library.
Not really sure what to do, do you have a solution?
I'm getting the same issue with this. Works fine normally, but when using browserify I get the same error with "phpdebugbar.addDataSet".
@xavi7th This is a long shot but is your APP_URL in your .env file set to localhost:8000?
Same issue here when using proxy.
My webpack.min.js
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.sass('resources/assets/sass/pdf.scss', 'public/css')
.browserSync({
open: 'external',
host: 'hq.slmd.com.mo.docker',
proxy: 'hq.slmd.com.mo.docker:8080/home'
});
Issue is located at the same place than @xavi7th, where the request_headers are set:
request_headers":"array:10 [\n \"host\" => array:1 [\n 0 => \"//hq.slmd.com.mo.docker:3000"\n ]\n \"connect
I tried to erase the request headers, but couldn't make it work. Not sure how to solve this.
Common story: try things for hours, post comment on github, 10 minutes after find the solution :D
Rewrite the request headers like below:
.browserSync({
open: 'external',
host: 'hq.slmd.com.mo.docker',
proxy: {
target: 'hq.slmd.com.mo.docker:8080/home',
reqHeaders: function () {
return {
host: "hq.slmd.com.mo.docker:3000"
}
}
}
});
@sco-tt yes my APP_URL in .env was set to localhost:8000. Still the same issue that way.
@barryvdh sorry for the late reply. I got pressured by deadlines and gave up trying to make this work on that project. I split queries optimization (which is where I depend heavily on debugbar) to another stage in the dev cycle. Also, no I don't have a solution BUT @godbout's solution worked flawlessly. I changed my browserSync config as such
mix.browserSync({
proxy: {
target: 'localhost:8000',
reqHeaders: function () {
return {
host: "localhost:3000"
};
}
},
browser: "google chrome",
files: [
'resources/views/**/*.php',
'public/**/*.html',
'public/**/*.php',
'public/js/**/*.js',
'!public/css/**/*.css'
],
});
@godbout thanks a lot for your time 馃憤 . Saved me a heck of time :).
Most helpful comment
Common story: try things for hours, post comment on github, 10 minutes after find the solution :D
Rewrite the request headers like below: