Skip to content

Releases: cleaniquecoders/blueprint-macro

Added money Blueprint

12 Oct 10:43
Compare
Choose a tag to compare

Added $table->money() Blueprint.

Usage

/**
 * This will create a column with decimal data type, precision of 8 and scale of 2 and column name money.
 **/
$table->money();

/**
 * This will create a column with decimal data type, precision of 8 and scale of 2 and column name price.
 **/
$table->money('price');

/**
 * This will create a column with decimal data type, precision of 18 and scale of 2 and column name price.
 **/
$table->money('price', 18);

/**
 * This will create a column with decimal data type, precision of 18 and scale of 4 and column name price.
 **/
$table->money('price', 18, 4);

Added Laravel 5.7 Support

06 Sep 00:00
Compare
Choose a tag to compare
v2.2.0

Added Support Laravel 5.7

Use Eloquent Builder instead of Query Builder

20 Aug 03:05
Compare
Choose a tag to compare
v2.1.1

Workaround on hasMacro not found

Added Model Macros

19 Aug 06:31
Compare
Choose a tag to compare

To simplify the query based on Blueprint Macro, I've decided to add Model Macros as well.

Which mean, you can start query your data like:

$user = \App\User::hashslug($hashslug)->firstOrFail();
$user = \App\User::findByHashslugOrId($hashslugOrId);

and many more - will update the wiki.

Simplify Directory Structure

16 Aug 04:51
Compare
Choose a tag to compare
v2.0.9

Simplify directory structure

Update PHP CS Fixer

16 Aug 04:10
Compare
Choose a tag to compare
v2.0.8

Update PHP CS Fixer Config && Reorganise macros

Update

15 Aug 06:03
Compare
Choose a tag to compare
  • Update Dependencies
  • Update README
  • Added Scrutinizer Badge

Fixed _at in addAcceptance Macro

06 Aug 15:01
Compare
Choose a tag to compare
v2.0.6

Merge branch 'develop'

Fixed addForeign not Creating referenceOn

30 Jul 02:20
Compare
Choose a tag to compare

Fixed addForeign not creating referenceOn

Update addAcceptance(), by() macro.

18 Jun 05:43
4a22f1e
Compare
Choose a tag to compare
  1. Added 2nd argument to addAcceptance() macro to define table by() will use.
$table->addAcceptance('approved'); // by default it will refer to users table
$table->addAcceptance('approved', 'supervisors');
  1. Set nullable as default for by() macro.