Search
Convert JSON into PHP short-array syntax and a starter Eloquent model with fillable attributes and inferred casts.
{"id":1,"name":"Ada","email":"[email protected]","active":true,"created_at":"2026-01-15 09:00:00"} {"title":"Post","meta":{"views":12,"tags":["php","laravel"]}} [{"sku":"ABC","price":9.5},{"sku":"DEF","price":12}] Paste JSON from an API and copy a PHP array that uses [] syntax. The Eloquent stub takes top-level keys as $fillable and infers integer, float, boolean, array, and datetime casts. Nested objects stay as arrays so you can decide which relations to extract.
Laravel Str Helper Playground
Try Laravel Str helpers such as slug, snake, kebab, mask, and limit on a sample string.
Laravel PHP Version Compatibility
Check whether a Laravel version runs on a given PHP version, using the official PHP ranges for Laravel 8 through 13.
PHP Regex Tester
Test a regular expression with PHP preg_match or preg_match_all and inspect capture groups.
From the blog
From an API JSON payload to $fillable and $casts
Infer fillable attributes and a first-pass $casts array from a vendor JSON sample, then edit relations by hand.
From the blog
Use Str::slug before you write another regex
Illuminate Str helpers cover slugs, case, masking, and limits. They are easier to test than a one-off pattern.