Skip to content

Releases: bolt-php/core

[v1.2.3] Removed type hinting for validation

Choose a tag to compare

@Faheem-maker Faheem-maker released this 29 Jun 13:55
c6fc9e1
Merge pull request #17 from bolt-php/module-support

Removed type hinting for validation

[v1.2.2] Removed type hinting for validation

Choose a tag to compare

@Faheem-maker Faheem-maker released this 29 Jun 13:52
e49509a
Merge pull request #16 from bolt-php/module-support

Added support for module handling

[v1.2.1] Extended model from std class

Choose a tag to compare

@Faheem-maker Faheem-maker released this 29 Jun 13:48
e49509a
Merge pull request #16 from bolt-php/module-support

Added support for module handling

[v1.2.0] Module Support

Choose a tag to compare

@Faheem-maker Faheem-maker released this 29 Jun 13:09
e49509a

This feature adds support for modules

[v1.1.4] Bug fixes within ActiveRecord

Choose a tag to compare

@Faheem-maker Faheem-maker released this 01 Jun 13:31
f7d62e2

What's Changed

  • Fixed a bug that caused a crash if no record existed against find.
  • Added a limit method to fetch specified number of records

[1.1.3] Environment Bug Fixes

Choose a tag to compare

@Faheem-maker Faheem-maker released this 02 May 13:41
5ad1c3c

Multiple changes are being made from this release, notable ones are listed below:

Versioning Structure

We have completely dropped the patch version (1.0.0.1), instead, we shall only use versions till minor to clarify version constraints and simply management.

Bug Fixes

A number of bugs have been addressed, notable ones being listed below:

  • Fixed a bug resulting in ActiveModel failing to select data
  • first now returns an object instead of array
  • Fixed a bug where leading slash within path will be stripped on Linux environments, leading to system crashes

Improved coverage, modified fill and bug fixes

Choose a tag to compare

@Faheem-maker Faheem-maker released this 26 Apr 07:25
3614a71

The release makes 3 major changes:

Model::fill

The Model::fill method previously ignored any empty values, thus preventing us from clearing values of fields.

Now, the method uses isset for most values, allowing you to update models partially. If a file isn't uploaded during edit, it would use the older file, thus ensuring "leave-blank" functionality.

Bug Fixes

• Fixed table exists for SQLite driver
• Fixed a bug resulting in duplicate component initialization

Improved Coverage

Tests added for SQLite, MySQL and other components, significantly improving coverage and reliabitliy.

Addition of migrations

Choose a tag to compare

@Faheem-maker Faheem-maker released this 20 Apr 15:00
c07c0cf

Migrations allow you to version control your database schema. You can create a migration file using the make:migration command.

Example:

php tiny make:migration create_products_table

Example Migration

Here's an example that creates a migration for a products table:

<?php

namespace app\migrations;

class CreateProductsTable
{
    public function up()
    {
        $tableCmd = db()->createTable('products');
        $tableCmd->id();
        $tableCmd->string('title');
        $tableCmd->string('image');
        $tableCmd->timestamps();
        $tableCmd->execute();
    }

    public function down()
    {
        db()->dropTable('products');
    }
}

Executing Migration

Finally, you can apply the migration using migrate command.

php tiny migrate

Addition of transformer support

Choose a tag to compare

@Faheem-maker Faheem-maker released this 12 Apr 09:56
87e6e19

Transformers allow extending models with custom types. They are used to facilitate file uploading and handling date times.

Addition of FileSystem component

Choose a tag to compare

@Faheem-maker Faheem-maker released this 03 Apr 15:57
40dfded

This update adds a new FileSystem component. The component is required for upcoming file uploading support.