Skip to content

Instantly share code, notes, and snippets.

View Queopius's full-sized avatar
🚀
Working

Queopius A. S. Queopius

🚀
Working
View GitHub Profile
@Queopius
Queopius / GetNumberFormat.php
Created November 9, 2021 08:39
Formater Currency
<?php
namespace App\Actions\Generic;
trait GetNumberFormat
{
protected function amount($number)
{
return \NumberFormatter::create(
locale_get_default(), \NumberFormatter::CURRENCY
@Queopius
Queopius / GetAbortForbbiden.php
Created November 9, 2021 08:55
Get Abort Forbidden for Laravel Permissions with SweetAlert2
<?php
namespace App\Actions\Generic;
use Illuminate\Support\Facades\Gate;
//use Symfony\Component\HttpFoundation\Response;
trait GetAbortForbidden
{
protected function abortForbidden(string $permission)
@Queopius
Queopius / phpinsights.yml
Last active March 9, 2023 09:35
Pipeline de PHPInsights - Analizador del estilo y calidad de tu código
name: phpinsights
on:
push:
branches: [ "pre", "development" ]
pull_request:
branches: [ "prod"]
jobs:
phpinsights: