title: global variable in controller laravel 5.3
body: <p>How can definition a global variable for use in all function controller</p>
  
  <pre><code>class TestController extends Controller
  {
      private $x;
  
      public function index()
      {
          $this-&gt;$x ='22';
      }            
  
      public function send_message()
      {
          echo $this-&gt;$x;
      }
  }
  </code></pre>