Laravel Add a new column to existing table after processing request

 If (!Schema::connection("print-imports")->hasColumn('job_outputs_files', $column_name)) {

                Schema::table('print-imports.job_outputs_files', function (Blueprint $table) use ($column_name){
                    $table->string($column_name);
                });

No comments:

Post a Comment

AI Tools

 Midjourney oter.ai aiva googlegemin dall-e copilot jasper copilot openaiplayground