function formatCnpjCpf($value)
{
$cnpj_cpf = preg_replace("/\D/", '', $value);
if (strlen($cnpj_cpf) === 11) {
return preg_replace("/(\d{3})(\d{3})(\d{3})(\d{2})/", "\$1.\$2.\$3-\$4", $cnpj_cpf);
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use App\Macros\ViewMacros; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\View\View; | |
class AppServiceProvider extends ServiceProvider | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Form.php | |
<?php | |
namespace App\Http\Livewire; | |
use Livewire\Component; | |
class Form extends Component | |
{ | |
public ?string $name = 'pedro'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove apps if not will use | |
k3b, konversation, thunderbird | |
# Add sudo password | |
sudo passwd root | |
# Set the fastest mirror | |
sudo pacman-mirrors --fasttrack |