Did you know you may also pass `null` as a function typed parameter value in #PHP, even though the type is not marked nullable with `?`
All parameters with a default value of `null` may receive `null` as a value. https://t.co/mdbqXprZag
? When designing a chart, using a variety of colors might seem like a good idea at first but it can make it a lot harder for people with color blindness to interpret the data.
Instead, try using multiple shades of the same hue — it's more accessible and looks better too ? https://t.co/6nUWZ6BMUv
@jmlallier Here's when ->zip()'s useful:
Taking vertical slices of horizontally grouped data (think rows and columns in a DB).
If each row is a "year", & each column is "sales/mo" (12 columns), you could get "January sales over 3 years like so":
??? #TIL You can use the "--testdox" flag in PHPUnit to get a list of the methods (test) in the CLI output
@laravelphp #PHP #PHPUnit https://t.co/QQjV7bHRh6
Just found out you can pass "null" to array_map, and it behaves the same as ->zip() ? https://t.co/EkPUpWHO9m
⚡️ Did you know you can use ES6 Object Destructuring to remove one or multiple properties from an Object? https://t.co/ko3r3Nq7jE
If you want to publish .vue on npm directly, try vue-compile, which compiles the blocks in Vue single-file components to use JS/CSS instead of Babel/Sass/Stylus.
? Here's an undocumented hidden @laravelphp gem. Did you know you there's a shorter way to retrieve models in a chunked way? ?
#laravel #php https://t.co/qcVr5bCqGZ
? Object destructuring is so powerful. So many good uses, but a "config" object parameter is a great one! https://t.co/dSOCgnF2NN