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

Event listening in react

 How we can listen to som eevents some envents fire like click or automatically user enters into input button , that is event on word type i...