Download the PHP package kolirt/laravel-master-model without Composer

On this page you can find all versions of the php package kolirt/laravel-master-model. 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 laravel-master-model

Laravel Master Model

Laravel Master Model is a powerful package for the Laravel framework that simplifies working with models, particularly in saving relations and uploading files.

This package is designed for developers who want to optimize the process of working with databases and files, reducing code complexity and enhancing performance.

Structure

Buy Me A Coffee

Getting started

Requirements

Installation

Setup

Publish config file

Use the MasterModel trait in your models

Console commands

Use cases

Saving files

MasterModel automatically saves the file and deletes the old file, if it existed

You can specify folder and disk for each file

Saving files from third-party resources

You no longer need to worry about saving files from third-party resources, just put the response and MasterModel will save everything for you

Deleting files

You can delete files by setting the field to null

To have files deleted automatically, delete data through the model, not through the builder, and don't forget to load the necessary relations in which you want to delete files

If there are files in the relationship and the relationship is deleted not through the model, the files won't be deleted and will clog up storage

Saving HasOne, MorphOne relations

You can save HasOne, MorphOne relations in the same way as a file. If relation exists, it will be updated, otherwise it will be created

You can also delete the relation by setting it to null

Saving HasMany, MorphMany relations

You can save HasMany, MorphMany relations in the same way as a file. If relations exists, it will be updated, otherwise it will be created

Saving HasMany, MorphMany relations with sync mode

You can also sync HasMany, MorphMany relations. Unspecified relations will be deleted

Saving BelongsToMany relation

Saving BelongsToMany relation with sync mode

You can sync the BelongsToMany relation. Everything that is not specified when saving will be deleted

Response file

Use the responseFile method to return a file in a controller

FAQ

Check closed issues to get answers for most asked questions

License

MIT

Other packages

Check out my other packages on my GitHub profile


All versions of laravel-master-model with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
laravel/framework Version >=10.0
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 kolirt/laravel-master-model contains the following files

Loading the files please wait ....