Category : datetime

This is my code. I want to save a user with free trials of 30days in laravel cashier. I try to set the value of trial_ends_at but I got the following error: error : Illegal offset type Controller : $user = User::create([ ‘name’ => $data[‘name’], ’email’ => $data[’email’], ‘password’ => $data[‘password’], ‘role’ => ‘admin’, ‘company_id’ ..

Read more