Download the PHP package fsac/laravel-react-make without Composer
On this page you can find all versions of the php package fsac/laravel-react-make. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fsac/laravel-react-make
More information about fsac/laravel-react-make
Files in fsac/laravel-react-make
Package laravel-react-make
Short Description Artisan command to generate React components including TypeScript support
License MIT
Informations about the package laravel-react-make
Laravel React Make
Quickly scaffold React components in your Laravel app using Artisan. Includes customisable template stubs and TypeScript support.
Support
Laravel | Laravel React Make |
---|---|
10 | 4 (beta) |
10, 9 | 3 |
9, 8 | 2 |
8, 7, 6 | 1 |
Installation
In your Laravel directory install via Composer.
Basic Usage
Generate a React function component under resources/js/components
.
You may also include subdirectories:
Providing an absolute path will omit the components
prefix, using resources/js
as the root:
Advanced Usage
TypeScript
The command also supports generating TypeScript components. The short version -t
may also be used:
File Extension
You may provide a custom file extension. The short version -x
may also be used:
Configuration
If you'd like to customise the default configuration you must publish the config file:
Base Path
To use a base path other than resources/js
you may provide a value to the base
configuration option:
Path Prefix
When specifying relative paths the command will use the components
prefix. You
may change this prefix using the prefix
configuration option:
Default Options
Providing the same options each time you use the command, for example when working
with a TypeScript codebase, can become tiresome. You may provide your own default
option values using the defaults
config property:
Customising Stubs
If you'd like to customise the default templates used to generate components you may publish them
to the stubs
directory:
License
This code is open sourced under the MIT License.
All versions of laravel-react-make with dependencies
illuminate/console Version ^10|^11
illuminate/filesystem Version ^10|^11
illuminate/support Version ^10|^11