codewitholgun.comUltimate Guide to Setting Up a Web Development Environment on Linux Ubuntu 24 LTSLast week, I encountered issues with my existing Ubuntu setup. It was slow and lagging, and I couldn't resolve the problem. Then, I remembered that my laptop had two operating systems installed: Windows and Linux on separate partitions. Suspecting a ...Jul 22, 2024·6 min read
codewitholgun.comHow to use Computed Property Names in console.log?Introduction If you want to learn about how to use console.log as a professional developer then you have to learn computer property names. Let's Start Assume that we have 4 different objects and each one is assigned to a variable. How can we log thos...May 1, 2024·2 min read
codewitholgun.comHow to use Query Scopes in Laravel efficiently?Hello artisans, Today I'll be writing about how to use Query Scopes efficiently in Laravel projects. Query Scopes are very useful to encapsulate the logic you want to apply to database queries while using Models. Let's start with an example and under...Apr 29, 2024·2 min read
codewitholgun.comLaravel Sanctum Way To Authenticates different Models rather than Users.Laravel Sanctum is one way to authenticate different models to use your application but there are many other ways. In this article, I'll be explain how to authenticate team/team members with a Laravel Sanctum. Assume that we have following Model; cla...Dec 10, 2023·1 min read
codewitholgun.comMastering Form Management with React useForm Plugin LibraryIntroduction: Managing forms in web applications can be a complex task, especially when dealing with validation rules, error handling, and form submissions. The React useForm plugin library offers a powerful and elegant solution to simplify form mana...May 2, 2023·6 min read