fingerprintsketch:make-blueprint

The sketch:make-blueprint command allows you to create YAML schema files with predefined structures. This command will automatically create the necessary files and directories.

Simple Blueprint

php artisan sketch:make-blueprint post

Will create schemas/post.yaml

Nested Directory Blueprint

php artisan sketch:make-blueprint models/blog/post

Will create schemas/models/blog/post.yaml

Custom Directory Blueprint

php artisan sketch:make-blueprint auth/user

Will create schemas/auth/user.yaml

Options

Option
Description

--soft-delete

Enable Soft Delete in the Schema

php artisan sketch:make-blueprint models/blog/post --soft-delete

Generated Blueprint Structures

The generated file will have the following structure:

Configurations

The default path for schemas can be configured in config/sketch.php:

Last updated