⚗️ Adds code analysis to Laravel improving developer productivity and code quality.
MIT License
Bot releases are visible (Hide)
Published by canvural over 2 years ago
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.10...v2.1.11
Published by canvural over 2 years ago
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.9...v2.1.10
Published by canvural over 2 years ago
having()
and orHaving()
QueryBuilder methods by @Maxoulak in https://github.com/nunomaduro/larastan/pull/1258
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.8...v2.1.9
Published by canvural over 2 years ago
ReflectionClass
directly https://github.com/nunomaduro/larastan/commit/2404fa8d9e27d726bb9e42ec754b323d6727bdfd
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.7...v2.1.8
Published by canvural over 2 years ago
Conditionable
trait by @canvural in https://github.com/nunomaduro/larastan/pull/1261
Route::middleware
by @canvural in https://github.com/nunomaduro/larastan/commit/0543c454896f07079d86145afbc318a947ee72c1
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.6...v2.1.7
Published by canvural over 2 years ago
For class alias errors please see https://github.com/nunomaduro/larastan/issues/1246#issuecomment-1135698009
Published by canvural over 2 years ago
App::make
by @PrinsFrank in https://github.com/nunomaduro/larastan/pull/1222
QueryBuilder::newQuery()
@return from $this
to static
by @dotdash in https://github.com/nunomaduro/larastan/pull/1221
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.4...v2.1.5
Published by canvural over 2 years ago
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.3...v2.1.4
Published by canvural over 2 years ago
Model
casts
, hidden
and visible
properties by @Magiczne in https://github.com/nunomaduro/larastan/pull/1158
with
in RelationExistenceRule by @canvural in https://github.com/nunomaduro/larastan/pull/1175
after*
methods by @mdpoulter in https://github.com/nunomaduro/larastan/pull/1195
ModelRelationsExtension
by @canvural in https://github.com/nunomaduro/larastan/pull/1187
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.2...v2.1.3
Published by canvural over 2 years ago
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.1...v2.1.2
Published by canvural over 2 years ago
composer/pcre
by @orkhanahmadov in https://github.com/nunomaduro/larastan/pull/1152
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.1.0...v2.1.1
Published by canvural over 2 years ago
This release adds the ability to infer model properties from schema dumps. You can try to remove your migrations and use just the dump files. Note: Currently only dumps that have MySQL and MariaDB syntax are supported. SQLite is partially supported. And PostgreSQL is not tested.
Also this release introduces new config option called squashedMigrationsPath
. You can read more about it here.
$request->user()
call by @canvural in https://github.com/nunomaduro/larastan/pull/1136
Schema::connection
by @canvural in https://github.com/nunomaduro/larastan/pull/1151
Query::whereBetween
typehint by @gitetsu in https://github.com/nunomaduro/larastan/pull/1123
deleted_at
column has date type rather than string
by @totov in https://github.com/nunomaduro/larastan/pull/1124
Full Changelog: https://github.com/nunomaduro/larastan/compare/v2.0.1...v2.1.0
Published by canvural over 2 years ago
route
on Request class by @fragkp in https://github.com/nunomaduro/larastan/pull/1113
Full Changelog: https://github.com/nunomaduro/larastan/compare/2.0.0...v2.0.1
Published by canvural over 2 years ago
Main reason we have a major version increase is we dropped support for Laravel versions older than 9. Because now all the Collection stubs Larastan had are moved to the Laravel core! And since we only support Laravel 9, minimum PHP version we require is now 8.
Upgrade from Larastan 1.x should be straightforward. But be make sure you read the upgrade guide!
id
without migrations by @sebdesign in https://github.com/nunomaduro/larastan/pull/1057
Full Changelog: https://github.com/nunomaduro/larastan/compare/1.0.3...2.0.0
Published by canvural over 2 years ago
Full Changelog: https://github.com/nunomaduro/larastan/compare/1.0.2...1.0.3
Published by canvural almost 3 years ago
with*
calls on RedirectResponse
by @canvural in https://github.com/nunomaduro/larastan/pull/1016
first
, firstWhere
, last
by @sebdesign in https://github.com/nunomaduro/larastan/pull/1025
Full Changelog: https://github.com/nunomaduro/larastan/compare/1.0.1...1.0.2
Published by canvural almost 3 years ago
groupBy
Collection method signatureCheckJobDispatchArgumentTypesCompatibleWithClassConstructorRule
to CheckDispatchArgumentTypesCompatibleWithClassConstructorRule
by @canvural in https://github.com/nunomaduro/larastan/pull/1003
CheckDispatchArgumentTypesCompatibleWithClassConstructorRule
now checks for argument types compatibility with the class constructor for both Event and Job classes. by @canvural in https://github.com/nunomaduro/larastan/pull/1003
Full Changelog: https://github.com/nunomaduro/larastan/compare/1.0.0...1.0.1
Published by canvural almost 3 years ago
Enumerable::filter
in https://github.com/nunomaduro/larastan/pull/981
rescue
parameter of rescue
function now accepts the Throwable
by @sebdesign in https://github.com/nunomaduro/larastan/pull/989
CheckJobDispatchArgumentTypesCompatibleWithClassConstructorRule
rule in https://github.com/nunomaduro/larastan/pull/991
non-empty-string
types in stubs. https://github.com/nunomaduro/larastan/commit/c5b81cfee07686e2ce0ea557f8e32f2f022d47eb
You can read more details about the rules here.
JsonResource
class is no longer generic. You can remove @template
tags from your resource classes and directly add @mixin Model
tags to your resource classes. https://github.com/nunomaduro/larastan/commit/37f9ce80890a67a02b1d55bf79eb73604880c6b9
Full Changelog: https://github.com/nunomaduro/larastan/compare/v0.7.14...1.0.0
Published by canvural almost 3 years ago
Full Changelog: https://github.com/nunomaduro/larastan/compare/v0.7.14...v0.7.15
Published by canvural almost 3 years ago
flatMap
's callback returns an Enumerable
(#970) Thanks @bastien-phiNoModelMake
to prevent inefficient model instantiation (#976) Thanks @spawniaFull Changelog: https://github.com/nunomaduro/larastan/compare/v0.7.13...v0.7.14