If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).
Example below explains implications for different implementations.
| <div id="google_translate_element"></div> | |
| <script> | |
| function googleTranslateElementInit() { | |
| new google.translate.TranslateElement({ | |
| pageLanguage: 'en' | |
| }, 'google_translate_element'); | |
| } | |
| </script> | |
| <script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> | 
| <?php | |
| // Register these inside a service provider: | |
| Blade::directive('route', function ($expression) { | |
| return "<?php echo route({$expression}) ?>"; | |
| }); | |
| Blade::directive('routeIs', function ($expression) { | |
| return "<?php if (request()->routeIs({$expression})) : ?>"; | 
| <?php | |
| class Palindrome | |
| { | |
| public static function isPalindrome($word) | |
| { | |
| $word = strtolower($word); | |
| $length = strlen($word); | |
| for($i = 0; $i < $length; $i++) | |
| { | 
First, run:
$ composer config --list --global        //this will get the composer home path.
[home] /root/.composer                   //it's my composer home path.And then, edit the config.json in [home] directory, make it like this:
{
  "config": {
 "github-protocols": [