osuwariboy

Experience

120

0 Best Reply Awards

  • Member Since 8 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

13th September, 2017

osuwariboy left a reply on Purpose Of Homestead/Laravel Rsa Keys • 2 months ago

I did a vagrant destroy and then a vagrant up. Unless I'm mistaken, that should have reprovisioned the box, no? Also, the box I'm currently using is Homestead/laravel

osuwariboy left a reply on Purpose Of Homestead/Laravel Rsa Keys • 2 months ago

But... vagrant ssh works even though I commented out the configuration.

osuwariboy started a new conversation Purpose Of Homestead/Laravel Rsa Keys • 2 months ago

Hey there,

I'm currently configuring a Homestead/Laravel vagrant box on my windows machine and I'm kind of lost as to the purpose of the "authorize" and "keys" directives in the Homestead.yaml file.

I tried the following expecting something to actually crash, but to my surprise, everything built normally:

authorize: ~/.ssh/id_rsa.pub

keys:

- ~/.ssh/id_rsa

Putty can connect to the machine no problem and the machine works as expected. So... what is the purpose of these lines? Can someone tell me?

Thanks in advance.

10th March, 2017

osuwariboy started a new conversation Inconsistency Between PDO And Class Model InsertAndSetId Method? • 8 months ago

Okay, so in method insertAndSetId() method of the Model class, there's something that's kind of strange. It does this:

$id = $query->insertGetId($attributes, $keyName = $this->getKeyName());

Which does an insert before calling the lastInsertId() method of PDO in order to recover the last inserted id. The thing is that with the given parameters, it basically does:

lastInsertId($keyname)

The thing is that PDO expects the name of the sequence from which to recover the ID, not the name of the primary key field. I'm using Vertica (which is a fork of PostgreSQL) and it's causing me quite a headache. Typically, sequences are named using this scheme:

table_field_seq

So if you have a billing table with an Id field that's populated by a sequence, you'd typically have:

billing_Id_seq

Can anyone explain to me why it's been done this way?

Thanks

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.