This Gist has now been converted into a package and migrated to https://github.com/marcnewton/laravel-alsl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$providers = [ | |
'Illuminate\Auth\AuthServiceProvider', | |
'Illuminate\Broadcasting\BroadcastServiceProvider', | |
'Illuminate\Bus\BusServiceProvider', | |
'Illuminate\Cache\CacheServiceProvider', | |
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', | |
'Illuminate\Cookie\CookieServiceProvider', | |
'Illuminate\Database\DatabaseServiceProvider', | |
'Illuminate\Encryption\EncryptionServiceProvider', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit tests | |
on: [push] | |
jobs: | |
phpunit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Copy .env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get version id | |
query($name: String!, $owner: String!) { | |
repository(name: $name, owner: $owner) { | |
id | |
name | |
registryPackages(first: 10) { | |
nodes { | |
versions(first: 10) { | |
nodes{ | |
id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:8-jdk-alpine | |
LABEL Miguel Doctor <[email protected]> | |
RUN apk add --no-cache curl tar bash procps | |
# Downloading and installing Maven | |
ARG MAVEN_VERSION=3.6.1 | |
ARG USER_HOME_DIR="/root" | |
ARG SHA=b4880fb7a3d81edd190a029440cdf17f308621af68475a4fe976296e71ff4a4b546dd6d8a58aaafba334d309cc11e638c52808a4b0e818fc0fd544226d952544 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |
- Add your project logo.
- Write a short introduction to the project.
- If you are using badges, add them here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ConfirmDialogConfig { | |
title: string; | |
text: string; | |
deleteButtonText: string; | |
} | |
/** | |
* A hook that will allow you to prompt a user for confirmation before doing a delete, by showing a "Are you sure" modal. | |
* @param action - the action to be performed when the user presses delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\Enums; | |
use BenSampo\Enum\Enum; | |
use BenSampo\Enum\Contracts\LocalizedEnum; | |
final class Countries extends Enum | |
{ | |
const AF = "Afghanistan"; | |
const AL = "Albania"; | |
const DZ = "Algeria"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ErrorBag { | |
constructor(errors = {}) { | |
this.setErrors(errors); | |
} | |
hasErrors() { | |
return !!this.keys.length; | |
} | |
get keys() { |