Skip to content

Instantly share code, notes, and snippets.

@paulredmond
paulredmond / may-mayhem-contest-articles.md
Created Jun 4, 2018
The complete list of articles submitted to the Laravel Blog Contest - May Mayhem Edition 2018
View may-mayhem-contest-articles.md
View UsersIndex.vue
<template>
<div class="users">
<div v-if="error" class="error">
<p>{{ error }}</p>
</div>
<ul v-if="users">
<li v-for="{ id, name, email } in users">
<strong>Name:</strong> {{ name }},
<strong>Email:</strong> {{ email }}
View app.html
<example-component
:example-data="{&quot;wrestler_name&quot;:&quot;&amp;quot;Mercenary&amp;quot; Keith Anderson&quot;}"
>
</example-component>
@paulredmond
paulredmond / leanpub-tree-view.md
Created Jan 28, 2018
Docker for PHP Developers Leanpub Tree View
View leanpub-tree-view.md
├── .gitignore
├── manuscript
│   ├── Book.txt
│   ├── Sample.txt
│   ├── Subset.txt
│   ├── acknowledgments.md
│   ├── backmatter.txt
│   ├── chapter01.md
│   ├── chapter02.md
@paulredmond
paulredmond / docker-php-developers.md
Created Jan 28, 2018
Docker for PHP Developers Testimonials
View docker-php-developers.md

https://twitter.com/MrPReimers/status/956806077563195392

Just bought Docker for PHP Developers by @paulredmond. 😍 A great way to start using @Docker in @symfony / @laravelphp projects 👍

https://twitter.com/josesabarbosa/status/956720618480775169

I spent so many hours trying to figure this things out by myself and you make it look so easy 👌. This is gold for beginners. Next stop, chapter 6 🔥.

https://twitter.com/cmgmyr/status/956644987504128002

📘Just read through the first few chapters of @paulredmond’s book. It’s such a smooth read, and he makes Docker seem a lot more accessible. If you're interested in learning Docker, you should pick it up!

@paulredmond
paulredmond / states.js
Created Dec 27, 2017
US States for a JS Dropdown
View states.js
var states = [
{
label: 'Alabama',
value: 'AL'
},
{
label: 'Alaska',
value: 'AK'
},
{
@paulredmond
paulredmond / TestCase.php
Created Nov 15, 2017
Bootstrap the Request instance in Lumen 5.5
View TestCase.php
<?php
namespace Tests;
use Illuminate\Http\Request;
use Laravel\Lumen\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
/**
View Preferences.sublime-settings
{
"draw_white_space": "all",
"added_words":
[
"Laravel",
"mkdir",
"github",
"https",
"laravel",
"Ubuntu",
@paulredmond
paulredmond / docker-compose.yml
Created Oct 12, 2017
The docker-compose file
View docker-compose.yml
version: '3'
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- 8080:2015
volumes:
- .:/srv/app
@paulredmond
paulredmond / Dockerfile
Created Oct 12, 2017
A Dockerfile for a Laravel PHP Application with Caddy Server
View Dockerfile
FROM php:7.1-fpm
LABEL maintainer="Paul Redmond <paul@bitpress.io>"
# Install application dependencies
RUN curl --silent --show-error --fail --location \
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \
| tar --no-same-owner -C /usr/bin/ -xz caddy \
&& chmod 0755 /usr/bin/caddy \
&& /usr/bin/caddy -version \