{ Laravel snippets }

Mohamed Said🐋

Mohamed Said🐋 @themsaid

⚠️: If you use reject() or filter() the indices of the collection will be non-sequential, you have to call values() if you'll return it as JSON to avoid having a JSON object instead of a JSON array. https://t.co/25YadmoPZF

Andrew Schmelyun

Andrew Schmelyun @aschmelyun

Global variables across your entire Vue app w/o importing a config into each component is easy with webpack's DefinePlugin! (This is setup w/ Laravel's mix compiler, but works with vanilla webpack) https://t.co/Q7Feh99sQU


Povilas@LaravelDaily @DailyLaravel

#Laravel tip of the day: add extra parameters to your links as an array, they will automatically be added to URL as /home?param=1&param=2... etc. Which means you can define that parameter array in Controller or elsewhere outside of Blade file. https://t.co/ZDQoVlnHL3