Hello, I have the next class
namespace App\Repository\Constants\Models;
class InstanceModelContant
{
const ALREADY_DEMO = "Usted ya posee un demo.";
const ALREADY_INSTANCE = "Ya tiene un servidor con estas caracteristicas.";
const INSTANCE_DEMO_TYPE = "t2.micro";
const CHAR_NOT_PUBLIC_ADDRESS = "--";
}
Within the class several constants were defined that I use in various places throughout the project.
In blade I have to make a comparison of the attribute of a model that would be like this
@if($instancia->publicip == '--')
{{$instancia->publicip}}
@else
<h1>hola mundo</h1>
@endif
But as you can see, I got to burn the code on - what I want is to use the CHAR_NOT_PUBLIC_ADDRESS attribute inside the blade and not burn the code.
Or what else could you advise me?