api response
{
"data": [
...
],
"links": {
"first": "https://example.com/pagination?page=1",
"last": "https://example.com/pagination?page=10",api response
{
"data": [
...
],
"links": {
"first": "https://example.com/pagination?page=1",
"last": "https://example.com/pagination?page=10",| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\JsonResponse; | |
| class ProfileJsonResponse | |
| { | |
| /** |
| #!/bin/bash | |
| yarn add -D @typescript-eslint/eslint-plugin \ | |
| typescript ts-node-dev \ | |
| @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue prettier | |
| cat > .eslintrc.js <<EOF | |
| module.exports = { | |
| root: true, | |
| env: { |
Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.
Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).
It should look something like the content below; call it my-site.conf or something like that.
| #!/bin/sh | |
| set -e | |
| vendor/bin/phpunit | |
| (git push) || true | |
| git checkout production | |
| git merge master |
Last updated June 23, 2022
There are now two ways to approach this:
This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions
| <?php | |
| /* | |
| * Run this artisan command before: | |
| * php artisan make:command MakeConfig | |
| */ | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; |