Skip to content

Instantly share code, notes, and snippets.

@tomfordweb
tomfordweb / RecaptchaTrait.php
Created April 4, 2017 18:40
Laravel Recaptcha Trait
<?php namespace App\Http;
/**
* Need to create goog recaptcha data before usage
*/
use Request;
trait RecaptchaTrait {
public function validateCaptchaString($secret, $response_string, $remote_ip)
@davidmyersdev
davidmyersdev / LaravelHelpers.md
Last active March 2, 2017 15:44
Scripts and Tips to help with your Laravel project workflow.

Laravel Helpers

Project Setup

Composer Commands

Commands to help the project setup process.

By adding the following script to your composer.json, running composer install will automatically create your .env file and generate a new app key if the file doesn't exist yet (this now runs after the install, because artisan doesn't work until the packages are installed).

@hollodotme
hollodotme / Install-php7.md
Last active August 11, 2022 06:23
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
@malarkey
malarkey / Contract Killer 3.md
Last active May 24, 2024 23:38
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………