Skip to content

Instantly share code, notes, and snippets.

View chiragparekh's full-sized avatar
🏠
Working from home

Chirag Parekh chiragparekh

🏠
Working from home
View GitHub Profile
@MrPunyapal
MrPunyapal / 1 Types.md
Last active November 14, 2024 11:14
Types In PHP

Atomic Types (Built-in and Scalar)

// Built-in types
$variable = null;             // null type

// Scalar types
$boolVar = true;              // bool type
$intVar = 42;                 // int type
$floatVar = 3.14;             // float type
@WalrusSoup
WalrusSoup / laravel-pint-with-sail-phpstorm.md
Last active September 23, 2024 10:10
Run laravel pint from Phpstorm with WSL on save

Saving this so I dont forget later.

Run Laravel Pint from Phpstorm with WSL on save with Laravel Sail

  1. create custom file watcher
  2. For tool to Run on Changes add the full path to vendor/bin/sail via WSL like so \\wsl$\Ubuntu\home\ozen\projects-sail\MYPROJECT\vendor\bin\sail
  3. Arguments bin pint $/FileRelativePath$
  4. Output paths to refresh $FilePath$
  5. Working Directory $ProjectFileDir$