I use lots of class constants in my models. When I want to use them inside blade I start by importing them at the top of the template.
For example:
@php
use App\Model\Core\User;
@endphp
Later on in the template I use them as shown in the following example.
<option value="@php echo User::MY_CONSTANT @endphp">This is an option</option>
Is there a more elegant way to go about this? It seems a bit crude to directly import a namespace into a variable scope that is managed by a templating engine. My IDE (phpstorm) sure doesn't like it.