title: Arr::get() vs data_get() in Laravel 5.7
body: <p>With <code>data_get()</code> helper function, we can get value of a nested array using dot <code>.</code> notation as following:</p>
  
  <pre><code>$my_arr = [
      'a' =&gt; ['lower' =&gt; 'aa', 'upper' =&gt; 'AAA',], 
      'b' =&gt; ['lower' =&gt; 'bbb', 'upper' =&gt; 'BBBBB',],
  ];
  </code></pre>
  
  <p>Thus, I can get lower <code>a</code> by doing this.</p>
  
  <pre><code>data_get($my_arr, 'a.lower');
  </code></pre>
  
  <p>And you also do the following.</p>
  
  <pre><code>Arr::get('a.lower');
  </code></pre>
  
  <p>In case I just want to get only the first level of the array. I just can do both:</p>
  
  <pre><code>data_get($my_arr, 'a');
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>Arr::get($my_arr, 'a');
  </code></pre>
  
  <p>Which one do you recommend me and why? I just want to keep improving my Laravel experience and get good advice from senior developers to choose the best options at the moment. </p>