PHPackages                             nukacode/lumen-base - 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. [Framework](/categories/framework)
4. /
5. nukacode/lumen-base

ActiveProject[Framework](/categories/framework)

nukacode/lumen-base
===================

The Laravel Lumen Framework with nukacode.

1.0.1(11y ago)3411MITPHP

Since May 11Pushed 11y ago4 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

General Lumen changes
=====================

[](#general-lumen-changes)

- Facades, Eloquent and DotEnv are enabled. Comment the lines in `bootstrap/app.php` out if you don't need them.
- Configs folder added. If you want to add a config file, look to [Lumen Docs](http://lumen.laravel.com/docs/configuration#configuration-files).
- `app/Http/routes.php` contains a `/status` route that will return a 200 response with JSON "ok".

Models
======

[](#models)

- All models return collections as an instance of `App\Support\Collection`.
- All models can now tap `->hashId` to get a hashed version of it's id.
- All models now have `findHash()`. This works the same as `find()` but expects the hashed id.
- All models are expected to set a `HASH_ID` constant. This will be the models salt.
    - This is checked in the `BaseModel` constructor and will throw an exception if it's not found.

Transformers
============

[](#transformers)

- Docs: [Fractal](http://fractal.thephpleague.com/transformers/)
- Example Class

```
