PHPackages                             tricioandrade/oneshot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. tricioandrade/oneshot

ActiveLibrary[CLI &amp; Console](/categories/cli)

tricioandrade/oneshot
=====================

Laravel artisan extra commands

v3.3.3(2y ago)177↓100%[1 PRs](https://github.com/tricioandrade/oneshot/pulls)MITPHPPHP &gt;=8.2.0

Since Sep 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tricioandrade/oneshot)[ Packagist](https://packagist.org/packages/tricioandrade/oneshot)[ RSS](/packages/tricioandrade-oneshot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (37)Used By (0)

OneShot
=======

[](#oneshot)

*Laravel* artisan extra commands

[![Latest Stable Version](https://camo.githubusercontent.com/d0992a1e5e482fd0b868c167f2e6ea820a0ab6e62a6c9ba42e98d3f65284dfc2/687474703a2f2f706f7365722e707567782e6f72672f74726963696f616e64726164652f6f6e6573686f742f76)](https://packagist.org/packages/tricioandrade/oneshot) [![Total Downloads](https://camo.githubusercontent.com/2539573032dc5c738457323e681592dab2c5890f5da4194a4ab951aa958bdf91/687474703a2f2f706f7365722e707567782e6f72672f74726963696f616e64726164652f6f6e6573686f742f646f776e6c6f616473)](https://packagist.org/packages/tricioandrade/oneshot) [![License](https://camo.githubusercontent.com/b7038816c1341982aca4fc83771a8ba606833f2359d1312b9ba5be7a887d48fd/687474703a2f2f706f7365722e707567782e6f72672f74726963696f616e64726164652f6f6e6573686f742f6c6963656e7365)](https://packagist.org/packages/tricioandrade/oneshot) [![PHP Version Require](https://camo.githubusercontent.com/949badd0cdac7f65ff540c52e0205823f50199e32c9212568b734c2087aa3b2b/687474703a2f2f706f7365722e707567782e6f72672f74726963696f616e64726164652f6f6e6573686f742f726571756972652f706870)](https://packagist.org/packages/tricioandrade/oneshot)

 "OneShot" is a development package in Laravel projects, particularly for APIs. It is a *resource* generator for items such as controllers, resources, requests, models, migrations, traits, and enums (PHP 8.1).

Installation
------------

[](#installation)

Open your terminal and run:

```
composer require tricioandrade/oneshot

```

Generate your files
-------------------

[](#generate-your-files)

Create *Enum* files, your file will be created at app/Enum in yor Laravel project

### Enum

[](#enum)

```
php artisan make:enum EmployeeFunctions

```

Will create EmployeeFuncionsEnum.php file, like this:

```
EmployeeFunctionsEnum.php
```

```
