Skip to content

Instantly share code, notes, and snippets.

View fgonga's full-sized avatar
🎯
Concentrando

Fabrício Gonga fgonga

🎯
Concentrando
View GitHub Profile
@stevebauman
stevebauman / GeneratesXml.php
Created December 10, 2019 06:29
A Scheduled Tasks XML File Generator using PHP, Laravel and Spatie - Array-to-XML
<?php
namespace App\System;
use Spatie\ArrayToXml\ArrayToXml;
trait GeneratesXml
{
/**
* The XML template.
@karlhillx
karlhillx / macos_high_sierra_apache_php_brew_2018.md
Last active August 1, 2024 16:18
macOS High Sierra Setup: Homebrew + Apache + PHP + MariaDB + SSL

macOS High Sierra Setup: Homebrew + Apache + PHP + MariaDB + SSL

Homebrew Installation

First let's install Homebrew.

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

@luisciphere
luisciphere / Bootstrap Table CSS
Last active August 29, 2023 06:06
Bootstrap tables only css
.table {
width: 100%;
max-width: 100%;
margin-bottom: 1rem;
}
.table th,
.table td {
padding: 0.75rem;
vertical-align: top;
@fraterblack
fraterblack / laravel-queue-em-hospedagem-compartilhada
Created June 9, 2017 17:50
Rodar Queues do Laravel em Hospedagem compartilhada - Cpanel
Rodar Queues do Laravel em Hospedagem compartilhada
//É necessário criar uma método em um controller para executar a queue
//Estou chamando a tarefa e dizendo para ser executada somente uma vez
public function queue()
{
Artisan::call('queue:restart', []);
Artisan::call('queue:work', [
'--timeout' => 60,
'--memory' => 150,