Download the PHP package onursimsek/laravel-extended without Composer
On this page you can find all versions of the php package onursimsek/laravel-extended. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onursimsek/laravel-extended
More information about onursimsek/laravel-extended
Files in onursimsek/laravel-extended
Package laravel-extended
Short Description This is my package laravel-extended
License MIT
Homepage https://github.com/onursimsek/laravel-extended
Informations about the package laravel-extended
Extend your Laravel project with mixins and mores
Installation
You can install the package via composer:
Contents
- Illuminate\Database\Query\Builder
- Illuminate\Support\Str
- Illuminate\Support\Stringable
- Useful Traits
- InteractsWithDatabase
- beginTransaction
- commit
- commitAll
- rollBack
- rollBack
- Example
- HasName
- names
- HasValue
- value
Usage
Extended Illuminate\Database\Query\Builder
Extended Illuminate\Support\Str
Extended Illuminate\Support\Stringable
Useful Traits
InteractsWithDatabase
This trait provides an easy way to manage database transactions across multiple connections. It allows you to begin, commit, and roll back transactions.
beginTransaction(string ...$connections): void
This method starts a transaction on the specified database connections. If no connections are provided, the default database connection specified in your Laravel configuration will be used.
commit(string ...$connections): void
This method commits a transaction on the specified connections. If no connections are specified, nothing will happen.
commitAll(): void
This method commits transactions on all connections that have begun a transaction during the lifetime of the object.
rollBack(string ...$connections): void
This method rolls back a transaction on the specified connections.
rollBackAll(): void
This method rolls back transactions on all connections that have begun a transaction during the lifetime of the object.
InteractsWithDatabase Example
HasName
This trait converts the names of UnitEnum into an array.
names()
HasValue
values() and names()
This trait converts the names and values of BackedEnum into an array
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Onur Şimşek
- All Contributors
License
The MIT License (MIT). Please see License File for more information.