blog.jobins.jpEloquent Trick: Laravel Model from SubqueryIn Laravel, it's common to define a model's corresponding table using the table property, such as: class User extends Model { protected $table = 'users'; } This approach maps the model directly to a database table. However, there are situations wh...Aug 1, 2024·3 min read
blog.jobins.jpVue 2 reaches EOL, upgrade to Vue 3 nowVue 2 reached its end of life on December 31, 2023, It's been more than 3 years since Vue 3 was available, but still, there are a lot of Vue Js applications that are running in Vue 2. In this article, I will demonstrate two different approaches to up...Feb 25, 2024·5 min read
blog.jobins.jpUpgrading Laravel: An easy Step-by-Step Guide from 5.7 to 10.xIn this article, I'll detail my method for upgrading any Laravel application, regardless of its current version, to the most recent Laravel release. Throughout this blog, I'll be showcasing my approach by upgrading an older Laravel 5.7 application di...Dec 18, 2023·4 min read
blog.jobins.jpSimplifying Form Handling in Vue Applications with Form JS - Inspired by Inertia JSRecently I have been working on FormJs, which is a form helper and wrapper around Axios, inspired by inertiaJs. The purpose behind writing this new library was to streamline the process of how we handle the form on the front-end side. Validating form...May 13, 2023·4 min read
blog.jobins.jpTest Doubles in PHP with Mockery and PHPUnitTest doubles is a technique in which you replace the actual object with pretend object or a real method by pretend method or pre-define the return data and function arguments for a method to ease the testing purpose. In the real world, our applicatio...Mar 31, 2023·5 min read