Skip to content

Instantly share code, notes, and snippets.

@ryangjchandler
ryangjchandler / setup-tailwind.recipe
Last active February 19, 2024 17:46
Setup Tailwind in a Laravel project
# Install Tailwind
npm i tailwindcss autoprefixer -D
# Create a Tailwind configuration file
npx tailwindcss init -p
# Setup the CSS file
cat <<EOF > ./resources/css/app.css
@tailwind base;
@tailwind components;
@ryangjchandler
ryangjchandler / index.php
Created November 19, 2024 19:53
Big ol' PHP file
<?php
// A PHP file containing a variety of PHP features for testing purposes.
namespace App {
use namespace\Meta\AbstractClass;
trait Composition {
public function foo() {
<?php
namespace Illuminate\Support {
class Str {
public static function myMacro() {}
}
};