In this article, we’ll go through mutators and accessors of the Eloquent ORM in the Laravel web framework. After the introduction, we’ll go through a handful of examples to understand …
Read More “Mutators and Accessors in Laravel”
Laravel Two-Step Registration: Optional Fields for Country and City Imagine a project where you need to have two-step registration process, with some optional fields in the second step. Let’s build …
Read More “Laravel Two-Step Registration”
If your DB table doesn’t have timestamp fields (created_at and updated_at), then <?php $password = Hash::make(‘password’); $arrayOfValues = array(‘name’=>’Nikunj Joshi’,’email’=>’info@nikunjjoshiphpdeveloper.com’,’password’=>$password); User::create($arrayOfValues); ?> you will get SQL error. Laravel would try …
Read More “Disable Timestamps in Laravel”
How to install a specific version of package using Composer? Syntax composer require vendor/package:version