{
    "url": "https://delaparra-services.nl/skills/troubleshooting-backend",
    "locale": "en",
    "title": "Troubleshooting Backend Issues | DeLaParra Services",
    "description": "Troubleshooting Laravel, PHP, and backend-related errors.",
    "alternates": {
        "en": "https://delaparra-services.nl/skills/troubleshooting-backend",
        "nl": "https://delaparra-services.nl/nl/skills/troubleshooting-backend"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/skills/troubleshooting-backend.csv",
        "md": "https://delaparra-services.nl/skills/troubleshooting-backend.md",
        "json": "https://delaparra-services.nl/skills/troubleshooting-backend.json",
        "zip": "https://delaparra-services.nl/skills/troubleshooting-backend.zip",
        "pdf": "https://delaparra-services.nl/skills/troubleshooting-backend.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/skills/troubleshooting-backend.csv",
            "encodingFormat": "text/csv",
            "name": "troubleshooting-backend.csv"
        },
        {
            "url": "https://delaparra-services.nl/skills/troubleshooting-backend.json",
            "encodingFormat": "application/json",
            "name": "troubleshooting-backend.json"
        },
        {
            "url": "https://delaparra-services.nl/skills/troubleshooting-backend.md",
            "encodingFormat": "text/markdown",
            "name": "troubleshooting-backend.md"
        },
        {
            "url": "https://delaparra-services.nl/skills/troubleshooting-backend.pdf",
            "encodingFormat": "application/pdf",
            "name": "troubleshooting-backend.pdf"
        },
        {
            "url": "https://delaparra-services.nl/skills/troubleshooting-backend.zip",
            "encodingFormat": "application/zip",
            "name": "troubleshooting-backend.zip"
        },
        {
            "url": "https://delaparra-services.nl/skills/troubleshooting-backend/download",
            "encodingFormat": "application/zip",
            "name": "troubleshooting-backend-files.zip"
        }
    ],
    "markdown": "# Troubleshooting Backend Issues\n\n \n\nTroubleshooting Laravel, PHP, and backend-related errors.\n\n \n\n**Licence** MIT\n\n \n\n**Source** ceilidhboy/skills\n\n [Download zip](<https://delaparra-services.nl/skills/troubleshooting-backend/download>)   \n\n# Troubleshooting Backend Issues\n\n \n\n## When to Activate This Skill\n\n \n\nActivate this skill when encountering:\n\n \n\n- Laravel framework errors or exceptions \n- PHP errors or type errors \n- Database connection or query errors \n- Route registration issues \n- Controller or action problems \n- Artisan command failures \n- Type generation failures (PHP → TypeScript)\n\n \n\n## Common Backend Issues and Solutions\n\n \n\n### Route Registration Issues\n\n \n\n**Problem**: Wayfinder action file not generated, import fails **Cause**: Route not registered in ` routes/web.php ` **Solution**:\n\n \n\n1. Check ` routes/web.php ` for the route registration \n1. Verify the controller class name matches \n1. Run ` php artisan wayfinder:generate --no-interaction ` \n1. Verify the file exists in ` resources/js/actions/ `\n\n \n\nSee the ` routing-and-controllers ` skill for detailed workflow.\n\n \n\n### Type Generation Failures\n\n \n\n**Problem**: TypeScript types not updating after PHP changes **Cause**: ` php artisan typescript:transform ` not run **Solution**:\n\n \n\n```\nphp artisan typescript:transform\n```\n\n \n\nThen regenerate Wayfinder:\n\n \n\n```\nphp artisan wayfinder:generate --no-interaction\n```\n\n \n\n### Artisan Command Failures\n\n \n\n**Problem**: Artisan commands fail or hang **Cause**: Configuration cache or stale files **Solution**:\n\n \n\n```\nphp artisan config:clear\nphp artisan cache:clear\nphp artisan view:clear\n```\n\n \n\nThen retry the command.\n\n \n\n### Database Errors\n\n \n\n**Problem**: Database connection fails or queries error **Cause**: Environment variables, migrations not run, or schema issues **Solution**:\n\n \n\n1. Check ` .env ` file for correct database credentials \n1. Run ` php artisan migrate ` if migrations pending \n1. Check database schema with ` php artisan tinker ` and query directly\n\n \n\n### PHP Type Errors\n\n \n\n**Problem**: Static analysis or runtime type errors **Cause**: Missing type hints or incorrect types **Solution**:\n\n \n\n1. Run ` composer fix ` to check Larastan analysis \n1. Add proper type hints to methods and properties \n1. Check the error message for the exact location and fix\n\n \n\n## Diagnostic Commands\n\n \n\n```\n# Check configuration\nphp artisan config:show\n\n# Run static analysis\nvendor/bin/phpstan analyse\n\n# Check routes\nphp artisan route:list\n\n# Test database connection\nphp artisan tinker\n```\n\n \n\n## When to Activate Other Skills\n\n \n\n- **Frontend errors appearing**: Activate ` troubleshooting-frontend ` \n- **Routing/controller questions**: Activate ` routing-and-controllers ` \n- **Testing failures**: Activate ` pest-testing `\n\n \n\n## Files\n\n \n\n- ` LICENSE ` \n- ` SKILL.md ` \n- ` SOURCE.md `\n\n \n\n## Related terms\n\n \n\n- [500 Internal Server Error](<https://delaparra-services.nl/knowledge-hub/500-internal-server-error>)\n\n \n\n[Installing an agent skill in Claude Code, Codex, Cursor and Copilot](<https://delaparra-services.nl/manuals/een-skill-installeren-in-je-ai-assistent>)\n\n[HTML version](https://delaparra-services.nl/skills/troubleshooting-backend)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "WebPage",
                "@id": "https://delaparra-services.nl/skills/troubleshooting-backend#webpage",
                "url": "https://delaparra-services.nl/skills/troubleshooting-backend",
                "name": "Troubleshooting Backend Issues | DeLaParra Services",
                "description": "Troubleshooting Laravel, PHP, and backend-related errors.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/skills/troubleshooting-backend#breadcrumb"
                }
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/skills/troubleshooting-backend#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Troubleshooting Backend Issues"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "SoftwareSourceCode",
                "@id": "https://delaparra-services.nl/skills/troubleshooting-backend#skill",
                "url": "https://delaparra-services.nl/skills/troubleshooting-backend",
                "name": "Troubleshooting Backend Issues",
                "description": "Troubleshooting Laravel, PHP, and backend-related errors.",
                "inLanguage": "en",
                "license": "https://spdx.org/licenses/MIT.html",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/skills/troubleshooting-backend#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/skills/troubleshooting-backend#dataset",
                "name": "Troubleshooting Backend Issues",
                "description": "Troubleshooting Laravel, PHP, and backend-related errors.",
                "url": "https://delaparra-services.nl/skills/troubleshooting-backend",
                "identifier": "https://delaparra-services.nl/skills/troubleshooting-backend#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/skills/troubleshooting-backend#skill"
                },
                "creditText": "ceilidhboy/skills",
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://spdx.org/licenses/MIT.html",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "dateModified": "2026-11-28T14:00:12+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#skills",
                    "name": "Skills for AI coding assistants",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "troubleshooting-backend.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/skills/troubleshooting-backend.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "troubleshooting-backend.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/skills/troubleshooting-backend.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "troubleshooting-backend.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/skills/troubleshooting-backend.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "troubleshooting-backend.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/skills/troubleshooting-backend.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "troubleshooting-backend.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/troubleshooting-backend.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "troubleshooting-backend-files.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/skills/troubleshooting-backend/download",
                        "inLanguage": "en",
                        "dateModified": "2026-11-28T14:00:12+00:00",
                        "license": "https://spdx.org/licenses/MIT.html"
                    }
                ]
            }
        ]
    }
}