mateog98's avatar

How to add an image column to my migration?

Hi im not sure which type of data is used in laravel migrations to upload files or images. I´m not sure if i should use string. I couldn´t find any concrete information in laravels documentation, so i hope sombedy could answer me in this forum.

This is my migration that i am making:

   Schema::create('detalles_tickets', function (Blueprint $table) {
             $table->id();
             $table->unsignedBigInteger('ticket_id');
             $table->foreign('ticket_id')->references('id')->on('tickets');
             $table->unsignedBigInteger('product_id');
             $table->foreign('product_id')->references('id')->on('products');
             $table->integer('serial_number');
             $table->integer('quantity');
             $table->text('commentary');
             $table->
             $table->timestamps();
         });
     }
0 likes
1 reply

Please or to participate in this conversation.