Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Plugin Laravel Laravel Package

psalm/plugin-laravel

Psalm plugin for Laravel that adds deep framework-aware static analysis plus taint-based security scanning. Detects SQL injection, XSS, SSRF, shell injection, file traversal, and open redirects by tracking user input flows across functions and services.

View on GitHub
Deep Wiki
Context7

title: ModelMakeDiscouraged parent: Custom Issues nav_order: 6

ModelMakeDiscouraged

Emitted when Model::make() is used instead of new Model().

Why this is a problem

Model::make() is forwarded through magic methods (__callStatic -> __call -> forwardCallTo) to Builder::make(), which just creates a new instance via newModelInstance(). Using new Model($attributes) is clearer and avoids the indirection.

Examples

// Bad — unnecessary indirection through magic methods and Builder
$post = Post::make(['title' => 'Hello']);
// Good — direct construction, easy to follow
$post = new Post(['title' => 'Hello']);

How to fix

Replace Model::make($attributes) with new Model($attributes).

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport