title: Error Call to undefined function App\Http\Controllers\Admin\get_option()
body: <p>hello i update of laravel 5.4 to 5.7 to 5.8 to 6 and finely to 7.14 and i see get_option error</p>
  
  <pre><code>public function user()
  {
      $userCount = User::where('admin','0')-&gt;count();
      $adminCount = User::where('admin','1')-&gt;count();
      $buyerCount = Sell::distinct('buyer_id')-&gt;count('buyer_id');
      $sellerCount = Sell::distinct('user_id')-&gt;count('user_id');
      $dayRegister = User::where('create_at','&gt;',strtotime('-'.get_option('chart_day_count',10).' day')+12600)-&gt;get();
      return view('admin.report.user',['userCount'=&gt;$userCount,'adminCount'=&gt;$adminCount,'buyerCount'=&gt;$buyerCount,'sellerCount'=&gt;$sellerCount,'dayRegister'=&gt;$dayRegister]);
  }
  </code></pre>
  
  <p>in laravel 5.4 i defined in helper method </p>
  
  <pre><code>function get_option($option,$default = null){
      if($result = \App\Models\Option::where('option',$option)-&gt;value('value'))
          return $result;
      else
          return $default;
  }
  </code></pre>
  
  <p>but in laravel 7 not work!</p>