Skip to content

Instantly share code, notes, and snippets.

View ariaieboy's full-sized avatar
👋
hi

AriaieBOY ariaieboy

👋
hi
View GitHub Profile
@ariaieboy
ariaieboy / shortcuts.md
Last active July 25, 2022 13:59
my custom and favorite phpstorm shortcut for windows

General

keyboard shortcuts description
Alt + W hide all tools
Alt + R Run
Alt + T terminal
Alt + A Run Anything
Alt + S File Structure
Ctrl + ` hide main menu
@MattApril
MattApril / ConsoleSchedulingTest.php
Last active October 19, 2023 13:58
A simple way of testing that your Lumen commands are scheduled exactly when and how you expect. This approach does not trigger commands to actually execute, which is what a lot of other suggestions do.
<?php
use App\Console\Kernel;
use Carbon\Carbon;
use Illuminate\Console\Scheduling\Event;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\Collection;
class ConsoleSchedulingTest extends TestCase
{
@ju5t
ju5t / instructions.md
Last active May 3, 2024 21:45
Livewire enabled TinyMCE blade component

Instructions

This is a very basic TinyMCE component. It uses 'entangle'. This allows you to link a Livewire and Alpine property to eachother. If one value changes, the other does too.

Installation

Add tinymce.blade.php to views/components/input. This can be another component folder too if you prefer, but keep in mind that you should also

@mikemiller891
mikemiller891 / phpunit.xml
Created October 8, 2020 20:55
A phpunit config for Laravel 8 to generate a code coverage report.
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>