This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

chris10207
chris10207

Hi,

i have a separate Company table. Now i'd like to create a relation between a user and a company. How can we achieve that ? This tuto https://vimeo.com/108040919 is talking about adding simple text field, what i need is a relation

thanks for any idea cheers

Last updated

chris10207
chris10207

in case anyone wonders, i updated the users database table as per follow in a migration file :

if (!Schema::hasColumn('users', 'company_id')) {
          Schema::table('users', function($table)
          {
             $table->integer('company_id')->unsigned()->nullable()->index();
          });
        }

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.