Releases: rozsazoltan/illuminate-blueprint-preserve
Releases · rozsazoltan/illuminate-blueprint-preserve
v0.0.2
Full Changelog: v0.0.1...v0.0.2
v0.0.1
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.
- Modifying Columns - Laravel 11 Upgrade Guide
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();
});