- Download MailHog: https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_windows_amd64.exe
- Move it to `C:\laragon\usr\bin\MailHog.exe
- Open Laragon's Procfile (Menu > Laragon > Procfile) and add these lines: MailHog: MailHog.exe autorun MailHog Admin: http://localhost:8025 autorun
- Stop Laragon
- Close/Edit completely
- Start Laragon
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
// Source: https://twitter.com/calebporzio/status/1151876736931549185 | |
<div class="flex"> | |
<aside class="h-screen sticky top-0"> | |
// Fixed Sidebar | |
</aside> | |
<main> | |
// Content | |
</main> |
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
/** | |
* @see {@tutorial https://github.com/typicode/husky} | |
* _Requires Node >= 10 and Git >= 2.13.0._ | |
*/ | |
module.exports = { | |
hooks: { | |
/** | |
* @see {@tutorial https://stackoverflow.com/a/15656652/3942699} | |
* | |
* ___only works with files staged in git___ |
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 | |
class BulkUpdateController | |
{ | |
private EntityWithManyProperties $entityWithManyProperties; | |
public function __construct(EntityWithManyProperties $entityWithManyProperties) | |
{ | |
$this->entityWithManyProperties = $entityWithManyProperties; | |
} |
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 Acme\Controller; | |
use HWI\Bundle\OAuthBundle\Templating\Helper\OAuthHelper; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | |
use Symfony\Component\Security\Http\Util\TargetPathTrait; |
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
### The best way to start is to use the "Delete all test data" button at https://dashboard.stripe.com/test/developers | |
### Setup: | |
import stripe | |
test = 'sk_test_51IXXXyoursecretkey' | |
prod = 'sk_live_51IXXXyoursecretkey' |
If you're working on a project that requires a version of PHP higher than the versions that MAMP comes with, you can easily add additional verions.
My version of MAMP came installed with PHP 7.4.21 and 8.0.8. I'm attempting to use MAMP to host a Laravel application which requires at least PHP 8.1.
The version of PHP MAMP uses is often different than the version you have installed. I have installed PHP using Brew. I'm currently running PHP 8.1.8. If you want to check your installed version of PHP, use the terminal and run the following command:
php --version
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
const { expect, test } = require('@playwright/test') | |
const aws4 = require('aws4') | |
const axios = require('axios').default | |
const S3_BUCKET_NAME = 'xxx'; | |
const S3_OBJECT_KEY = '/image.jpg'; // The name you want to give to the uploaded image file | |
const AWS_REGION = 'eu-west-2' | |
test('visit page and take screenshot', async ({ page }) => { | |
const response = await page.goto(process.env.ENVIRONMENT_URL || 'https://checklyhq.com') |
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
{ | |
"landingPage": "/wp-admin/", | |
"login": true, | |
"plugins": [ | |
"https://jeanbaptisteaudras.com/plugins/who-opquast-widgets.zip" | |
], | |
"siteOptions": { | |
"blogname": "Le joli widget Opquast" | |
} | |
} |
OlderNewer