This script command provides a quick way of searching the Laravel documentation.
It accepts a query and will open the first result in your default browser.
- Begin by creating a
~/.config/raycast/scripts
folder if you don't already have one.
<?php | |
namespace Illuminate\Support { | |
class Str { | |
public static function myMacro() {} | |
} | |
}; |
<?php | |
// A PHP file containing a variety of PHP features for testing purposes. | |
namespace App { | |
use namespace\Meta\AbstractClass; | |
trait Composition { | |
public function foo() { |
# 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; |
<?php | |
namespace Sample; | |
class SampleClass implements SampleInterface | |
{ | |
public string $public; | |
protected SampleClass $protected; |
{ | |
"scopeName": "source.pxp", | |
"patterns": [ | |
{ | |
"include": "#attribute" | |
}, | |
{ | |
"include": "#comments" | |
}, | |
{ |
type Option<T> = Some<T> | None<T>; | |
interface Optional<T> { | |
unwrap(): T; | |
unwrapOr(or: T): T; | |
isSome(): boolean; | |
isNone(): boolean; | |
} | |
class Some<T> implements Optional<T> { |
This script command provides a quick way of searching the Laravel documentation.
It accepts a query and will open the first result in your default browser.
~/.config/raycast/scripts
folder if you don't already have one.This script can be used to generate a set of CSS variables from a Tailwind shades object.
Let's say you have the following JavaScript object. You might have generated such an object on a site such as Tailwind Shades.
{
<div x-data="example()"> | |
<template x-for="(item, i) in items" :key="i"> | |
<div x-bind="props(i)"></div> | |
</template> | |
</div> | |
<script> | |
const example = () => ({ | |
current: 0, | |
items: [1, 2, 3], | |
props: (i) => ({ |
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Str; | |
class Post extends Model | |
{ | |
public static function boot() |