Skip to content

New Roots

Pre-release
Pre-release

Choose a tag to compare

@mychidarko mychidarko released this 30 Nov 17:51

v2.4.0 - BETA - 30th November, 2020

Unlike previous versions, this version of Leaf is focusing on improving the use of existing features, rather than just pumping new magic into Leaf. It has a lot of bug fixes, standardization of method names and overall upgrades.

Added

  • Added App::evadeCors
  • Added App::routes to preview all routes
  • Added Db::first()
  • Leaf DB can now detect query type even when query
  • Added orWhere, whereLike, orWhereLike like, orLike, orderBy, all limit and LIKE helpers to Leaf Db
  • Added new format to Date::now
  • Added Auth::update
  • Added custom token lifetime support on Auth
  • Added Auth settings to allow easy and more detailed customizations
  • Added token lifetime support on Helpers\Authentication
  • Added support for app down for maintainance

Fixed

  • Fixed login bug with Auth::currentUser
  • Fixed Leaf DB same value bug
  • Minor fixes on Auth::login and Auth::register

Changed

  • Switched methods to camel case
  • Renamed Auth::useToken to Auth::id
  • Renamed Auth::currentUser to Auth::user
  • Made Helpers\JWT and Helpers\Authentication methods static
  • Methods return null instead of false in case of unexpected results

Removed

  • Removed Form::isEmpty and Form::isNull
  • Removed deprecated methods from Response
  • Removed deprecated methods from Date

This list is still being updated.