10 things you should check before delivering a Laravel Project.

10 things you should check before delivering a Laravel Project.

  1. Environment Settings:

    • Ensure APP_ENV is set to production in .env.

    • Set APP_DEBUG to false.

  2. API Tokens:

    • Verify that API keys and tokens are set to production values.

    • Ensure that sensitive keys are not exposed.

  3. Database:

    • Confirm the live database is properly configured in .env.

    • Ensure database credentials are secure.

  4. Test Data:

    • Ensure all test data are cleaned (e.g.. Old Storage files/directories, Laravel Log files, etc)
  5. SEO Settings:

    • Ensure meta tags are set for all pages.

    • Verify that the sitemap is generated and accessible.

    • Confirm that the robots.txt file is correctly configured.

  6. Performance:

    • Ensure caching is enabled (CACHE_DRIVER).

    • Check that queues are set up correctly for background tasks.

    • Verify that the site passes performance audits (e.g., using tools like Blackfire).

  7. Email Configuration:

    • Confirm email credentials in .env are for production.

    • Test email functionality.

  8. External API Configurations:

    • Verify that all external API configurations in .env use production credentials.
  9. Security:

    • Ensure HTTPS is enabled.

    • Check that CSRF protection is enabled.

    • Validate Content Security Policy (CSP).

    • Check for any potential security vulnerabilities using tools like Laravel audit.

  10. Deployment:

    • Ensure proper deployment process (e.g., Envoyer or other deployment tools).

    • Check for correct file permissions.

    • Run php artisan config:cache and php artisan route:cache.