Download the PHP package luilliarcec/laravel-utilities without Composer

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

Laravel Utilities

run-tests Latest Version on Packagist Total Downloads GitHub license

Installation

You can install the package via composer:

Now publish the configuration file into your app's config directory, by running the following command:

Table of Contents

Set Attributes Uppercase

This section is for when you want to set all, or some of your attributes to uppercase.

Usage

If you want to ignore some attributes of your model, it can be set in the dontApplyCase property as follows.

If you want to ignore attributes globally, add them in the utilities config file under theattributes_ignored_globally key.

Belongs To Auth

This section is useful when you have tables in your DB model that are related to the authenticated user. By default, the name 'user_id' is used as the foreign key for the relationship, but you can change it from the utilities configuration file in theauth_foreign_id_column key.

You can use the BelongsTo Auth Trait.

  1. This Trait will add a listener for the creating event to associate the authenticated user with the model in question when it is being created.
  2. Also add a global scope to retrieve all the records associated with the authenticated user, you can disable this scope by calling the withoutAuth function when building your query.
  3. In addition, a custom rule is available for the exists andunique rules that add the where condition for the authenticated user, for you. It can also concatenate more conditions and other functionalities of the base rules exists andunique.

Using Trait

Using withoutAuth function

Using Rules

Decimals Rule

If you want to check decimal numbers, and the number of decimal places, you can use this rule as follows.

Testing

Releases

Please see Releases for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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


All versions of laravel-utilities with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version *
spatie/laravel-package-tools Version ^1.12
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 luilliarcec/laravel-utilities contains the following files

Loading the files please wait ....