API Versioning in Laravel

While upgrading the functionality of the application sometimes we need to change the majority portion of logic. In common cases doesn’t affect web applications but for APIs, it can be tricky. Some users don’t choose to upgrade the application and they can face errors in using the same APIs. API versioning provides a way to

Learn More

Generate String Acronyms with Laravel Macro

While creating social media applications or blog platforms sometimes requirements arise for showing Acronyms of user names or some titles. In this post, we will generate string Acronyms using koenhendriks/laravel-str-acronym. The Laravel Str Acronym provides a macro for generating acronyms from strings in Laravel projects using the Str helper and also supports the Stringable class.

Learn More

How to enable CORS in Laravel

In this post, we will explain what cross-origin resource sharing (CORS) is and how to enable CORS for Laravel applications. What is CORS? CORS stands for Cross-Origin Resource Sharing. Generally, assets like images, stylesheets, and scripts can be easily embedded into web pages. CORS is a browser mechanism that enables controlled access to resources outside

Learn More

How to change Laravel public folder to public_html?

Laravel is a popular PHP framework for building web applications. By default, Laravel stores its public files in a directory named “public” at the root of your project. However, some hosting providers use a different naming convention for the public folder, such as “public_html”. In this post, we will explore how to change Laravel public

Learn More