cannot be cast automatically to type integer laravel

cannot be cast automatically to type integer laravel

public function up()
{
    DB::statement('ALTER TABLE job_listings ALTER COLUMN 
                  company_id TYPE integer USING (company_id)::integer');
}

Leave a Comment