thiago
thiago

Thiago

@thiago

4 Posts 18 Views

  • No matching results...
  • Searching...

/ 255

I was studying a way to return the version of an API tag in an endpoint and look how simple it is to do using PHP and Laravel:

You just need to create a "git.php" file inside the project's config folder with the code below:

 <?php
 return'tag' => exec('git describe --tags --abbrev=0'), ];

Then just access the key using the config('git.tag') helper and you're done. And you can still make it simpler than that lol
#laravel #git

1

241

Alright

204

Tinha uma caixa de som Bluetooth jogada aqui em casa que ia acabar no lixo, tirei 15 minutos pra tentar arrumar e descobri que o problema era só o botão liga/desliga que nem precisei comprar outro pra fazer funcionar hehehehe

174