Skip to content

Instantly share code, notes, and snippets.

Loris Leiva lorisleiva

View GitHub Profile
lorisleiva / workflow.yaml
Last active Jan 18, 2020
🐳 GitHub Actions using Laravel Docker
View workflow.yaml
name: My Workflow
on: [push]
runs-on: ubuntu-latest
image: lorisleiva/laravel-docker:7.4
- uses: actions/checkout@v2
lorisleiva / ArticleUpdateTest.php
Created Aug 5, 2019
Set up traits dynamically for tests
View ArticleUpdateTest.php
namespace Tests;
use Tests\Authenticated;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ArticleUpdateTest extends TestCase
lorisleiva / phpcs.xml
Last active May 4, 2019
The default PHP Code Style of my Laravel projects.
View phpcs.xml
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Laravel">
<description>The default PHP Code Style of my Laravel projects.</description>
<!-- Files to include. -->
lorisleiva /
Last active Apr 23, 2020
This gist describes two processes allowing us to access the Google API and to register some webhooks

Access Google API credentials and domain verification

This gist describes two processes allowing us to access the Google API and to register some webhooks. At the end of both processes we will obtain all variable needed to start using their API and we will have whitelisted all necessary URL to get started. We will be using the Google Calendar API and the Google Plus API to access the email address of the user.

This gist has been created as an Appendix to this article (part 1) and this article (part 3).

Note that, I will be using a randomly generated ngrok domain during this presentation. Simply replace with your domain name

lorisleiva / PaymentRequest.js
Created Jun 4, 2018
Renderless VueJS component for Payment Requests using Stripe Element
View PaymentRequest.js
export default {
props: {
stripe: {
type: String,
required: true,
options: {
type: Object,
required: true,
You can’t perform that action at this time.