Skip to content

Instantly share code, notes, and snippets.

Godfrey Makori godfreymakori

Block or report user

Report or block godfreymakori

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
godfreymakori / nginx.conf
Last active Jun 23, 2019
Laravel LEMP Setup --
View nginx.conf
# Instructions
# 1. Replace laravel-app-folder with your laravel app folder name
server {
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 200M;
View testing mail in droplet with laravel
# SSH into droplet
# go to project
$ php artisan tinker
$ Mail::send('errors.401', [], function ($message) { $message->to('')->subject('this works!'); });
# check your mailbox
godfreymakori / laravel_set_input_old_manually
Last active Aug 26, 2017
Set Laravel Old Input Manually
View laravel_set_input_old_manually
Session::flash('', $client->email);
View docx2html
// set location of docx text content file
$xmlFile = $targetDir."/word/document.xml";
$reader = new XMLReader;
// set up variables for formatting
$text = ''; $formatting['bold'] = 'closed'; $formatting['italic'] = 'closed'; $formatting['underline'] = 'closed'; $formatting['header'] = 0;
// loop through docx xml dom
while ($reader->read()){
You can’t perform that action at this time.