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

Laravel Psalm plugin for deep static analysis plus taint-based security scanning. Detects SQL injection, XSS, SSRF, shell injection, path traversal, and open redirects by tracking user input through Laravel code without running it.

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.
codraw/entity-migrator
codraw/doctrine-extra
codraw/aws-tool-kit
codraw/validator
codraw/workflow
codraw/open-api
codraw/cron-job
codraw/process
codraw/log
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony