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
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('emmanuelbarturen@gmail.com')->subject('this works!'); });
# check your mailbox
@godfreymakori
godfreymakori / laravel_set_input_old_manually
Last active Aug 26, 2017
Set Laravel Old Input Manually
View laravel_set_input_old_manually
Session::flash('_old_input.email', $client->email);
View docx2html
// set location of docx text content file
$xmlFile = $targetDir."/word/document.xml";
$reader = new XMLReader;
$reader->open($xmlFile);
// 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.