Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

Fraid I can't shed any light on this, and I feel bad even suggesting this, but if you are in a big rush to get this out the door, why don't you just create the field in your table?

Though this is a horrible solution, it is still a solution...

Last updated 2 years ago.
0

cgoosey1 said:

Fraid I can't shed any light on this, and I feel bad even suggesting this, but if you are in a big rush to get this out the door, why don't you just create the field in your table?

Though this is a horrible solution, it is still a solution...

I have thought about that. It is horrible, but I do have a deadline...

Last updated 2 years ago.
0

check, if your production site has mysql pdo enabled.

just create .php page and add

<?php

echo phpinfo();
Last updated 2 years ago.
0

Ha! Good one! The live server is running in nginx under hiphop, and the dev is apache.

Does anyone have and advice about deployment on HipHop?

Last updated 2 years ago.
0

Also, it's only on a save when creating a new record. Updating the records works fine.

Last updated 2 years ago.
0

And, for the completeness, here's the save code in one of my models:

    public function save(array $options = [])
    {
        $this->locale  = \Input::get('locale');
        $this->title   = \Input::get('alias');
        $this->title   = \Input::get('title');
        $this->content = \Input::get('content');

        $validator = \Validator::make($this->attributes, static::$rules, static::$messages);
        if ($validator->fails()) {
            $this->errors = $validator->messages();
            return false;
        } else {
            parent::save($options);
            return true;
        }
    }
Last updated 2 years ago.
0

cgoosey1 said:

Fraid I can't shed any light on this, and I feel bad even suggesting this, but if you are in a big rush to get this out the door, why don't you just create the field in your table?

Though this is a horrible solution, it is still a solution...

This does work as a stopgap.

Last updated 2 years ago.
0

Not the most elegant stopgap, it might be worth making another topic or renaming this one (dunno if you can) to highlight its a hiphop production problem

Good luck!

Last updated 2 years ago.
0

cgoosey1 said:

Not the most elegant stopgap, it might be worth making another topic or renaming this one (dunno if you can) to highlight its a hiphop production problem

Good luck!

Thanks, I'll do that.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

garethwi garethwi Joined 25 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.