DeveloperBreeze

Web Application Deployment Development Tutorials, Guides & Insights

Unlock 1+ expert-curated web application deployment tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your web application deployment skills on DeveloperBreeze.

Building a Custom E-commerce Platform with Laravel and Vue.js

Tutorial August 27, 2024
javascript php

Products Table:

public function up()
{
    Schema::create('products', function (Blueprint $table) {
        $table->id();
        $table->string('name');
        $table->text('description');
        $table->decimal('price', 8, 2);
        $table->unsignedBigInteger('category_id');
        $table->foreign('category_id')->references('id')->on('categories')->onDelete('cascade');
        $table->timestamps();
    });
}