Download the PHP package visiarch/laravel-trait without Composer
On this page you can find all versions of the php package visiarch/laravel-trait. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download visiarch/laravel-trait
More information about visiarch/laravel-trait
Files in visiarch/laravel-trait
Package laravel-trait
Short Description A simple Laravel package to create traits, using artisan commands
License MIT
Homepage https://github.com/visiarch/laravel-trait
Informations about the package laravel-trait
laravel-trait
A Simple Package to create traits, using artisan commands in laravel.
This package extends the make:
commands to help you easily create trait classes in Laravel 9+.
What is Trait ?
Traits are a mechanism in PHP that allows the use of methods across classes. This allows developers to write functions that can be reused in many classes.
Install
Once it is installed, you can use any of the commands in your terminal.
Usage
Traits are used to avoid code duplication and facilitate reuse of the same logic across multiple classes without using inheritance.
Examples
Create a php trait
/app/Traits/Loggable.php
/app/Traits/Loggable.php
Implementation
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
How can I thank you?
Why not star the github repo? I'd love the attention! Why not share the link for this repository on any social media? Spread the word!
Thanks! visiarch
License
The MIT License (MIT). Please see License File for more information.