Skip to content

Releases: rozsazoltan/illuminate-blueprint-preserve

v0.0.2

30 Nov 16:09
a555886
Compare
Choose a tag to compare

v0.0.1

30 Nov 14:57
5039d85
Compare
Choose a tag to compare

Note

I explained the working principle of the Blueprint::column macro included in the package in a StackOverflow question. The main goal was to carry forward the logic retained up until the older Laravel 10.

Getting Started

composer require rozsazoltan/illuminate-blueprint-preserve

Usage

I will demonstrate the simplification provided by the package based on the modification mentioned in the Laravel documentation.

However, with my column macro, if I only want to modify the nullable on an existing column and keep all other attributes intact, the modification would look like this:

Schema::table('users', function (Blueprint $table) {
    $table->column('votes')->nullable();
});