Package Data | |
---|---|
Maintainer Username: | neronplex |
Maintainer Contact: | admin@neronplex.info (暖簾 (@neronplex)) |
Package Create Date: | 2016-09-04 |
Package Last Update: | 2017-02-14 |
Home Page: | |
Language: | PHP |
License: | Apache-2.0 |
Last Refreshed: | 2024-12-11 15:09:22 |
Package Statistics | |
---|---|
Total Downloads: | 29 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 2 |
cake-orm-enabler is a package to enable the cakephp/orm in Laravel.
$ composer require neronplex/cake-orm-enabler
In the case of Laravel.
// providers array in config/app.php
Neronplex\CakeORMEnabler\ServiceProvider::class,
In the case of Lumen.
// add line in bootstrap/app.php
$app->register(Neronplex\CakeORMEnabler\ServiceProvider::class);
In the case of Laravel.
// aliases array in config/app.php
'aliases' => [
// other facades...
'TableRegistry' => Neronplex\CakeORMEnabler\Facades\TableRegistry::class,
],
In the case of Lumen.
// add line in bootstrap/app.php (5.2 or earlier)
if (!class_exists('TableRegistry'))
{
class_alias('Neronplex\CakeORMEnabler\Facades\TableRegistry', 'TableRegistry');
}
// add line in bootstrap/app.php (5.3 or later)
$app->withFacades(TRUE, [
// other facades...
'Neronplex\CakeORMEnabler\Facades\TableRegistry' => 'TableRegistry',
]);
How to use the ORM case refer to the official reference.
Copyright © 2016 暖簾 (@neronplex) Licensed under the [Apache License, Version 2.0][Apache] [Apache]: http://www.apache.org/licenses/LICENSE-2.0