Multilingual (i18n) Applications in Laravel
Practical notes on adding multi-language support to Laravel: organizing language files, separating text from code, and managing locale switching.
Category
API design, forms, authentication and the server-side features of web applications: methods, security and hands-on worked examples. (Page 2/2)
This category has 23 posts.
Practical notes on adding multi-language support to Laravel: organizing language files, separating text from code, and managing locale switching.
How I use Laravel Notification classes to send the same notification logic across multiple channels — email, SMS, and more.
How to produce clean API responses with Laravel Resource classes without leaking your database model directly to clients.
How to centralize authorization logic in Laravel using Gates and Policies, keeping 'who can do what' decisions clean and testable.
Connecting to external services in PHP with the Guzzle HTTP client — covering timeouts, error handling, and building a reliable request structure.
Setting up reliable, maintainable transactional emails with Laravel's Mailable classes and Blade templates, from configuration to Markdown mailables.
How I design pagination, filtering, and sorting parameters in an API to present growing datasets to clients in a manageable way.
A walkthrough of the end-to-end flow for file uploading in Laravel: the form, validation, saving the file, resizing the image and handling error cases.
A practical walkthrough of building interface-agnostic JSON API endpoints in Laravel: routes, JSON responses, standardized errors, validation and headers.
Practical rules for making an API predictable through the triangle of resources, HTTP methods and status codes, with a real-world example.
A repeatable pattern for handling user input safely: Laravel validation rules, custom error messages, language files and a gotcha with the unique rule.