title: detect gulp task in php blade of laravel
body: <p>I have this in multiple entires in my blade template</p>
  
  <pre><code>@if (!App::environment('production'))
  &lt;script src="/bundle/feed.chunk.js"&gt;&lt;/script&gt;
  @else
  &lt;script src="{{ elixir('feed.chunk.js') }}"&gt;&lt;/script&gt;
  @endif
  </code></pre>
  
  <p>where App:enviroment is get from .env file. I want to add another condition. Like if hot reload is true go to another condition. Can I catch gulp's task name? </p>