Download the PHP package toanld/modules-inertia without Composer

On this page you can find all versions of the php package toanld/modules-inertia. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package modules-inertia

Modules-Inertia

The package is designed to be used by Vue/InertiaJs in conjunction with Laravel-Modules

Laravel compatibility

Laravel modules-inertia
6.0-10.x 0.0.x

Installation

Install the package via composer.

Config Files

In order to edit the default configuration you may execute:

Autoloading

By default, the module classes are not loaded automatically. You can autoload your modules using psr-4. For example:

Tip: don't forget to run composer dump-autoload afterwards.

Routing

Module routes must contain middleware in your App\Http\Kernel, as the last item in your web middleware group.

Usage

By default, Vue module files are created in the module directory Resources/Pages

You can change the default directory in config/modules.php

For use in Controller

The default value of Inertia::render() in a module has been changed to Inertia::module().

Inertia::render() is still available by default. It can be used outside of modules

For example:

If you use Vue version 2

If you use Vue version 3

Aliases

For the convenience of specifying the path from the root directory to the module directory, you can add alias in webpack.mix.js

For the convenience of specifying the path from the root directory to the module directory, you can add alias in vite.config.js

Console command

You can run php artisan module:publish-stubs to publish stubs.

And override the generation of default files

After create module

To be VueJS able to find the created module, you need to rebuild the script

Documentation

You'll find installation instructions and full documentation on https://docs.laravelmodules.com/.

Authors

License

The MIT License (MIT). Please see License File for more information.


All versions of modules-inertia with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
laravel/framework Version ~6.0||^7.0||^8.0||^9.0||^10.0
nwidart/laravel-modules Version ^9.0.4||^10.0
inertiajs/inertia-laravel Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package toanld/modules-inertia contains the following files

Loading the files please wait ....