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 June 10, 2024 14:37
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,