https://github.com/ntuple/aristocrat
Aristocrat Integration for Laravel 4.
https://github.com/ntuple/aristocrat
Last synced: 16 days ago
JSON representation
Aristocrat Integration for Laravel 4.
- Host: GitHub
- URL: https://github.com/ntuple/aristocrat
- Owner: ntuple
- Created: 2015-02-05T02:42:04.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-11-16T10:45:26.000Z (about 7 years ago)
- Last Synced: 2024-12-11T14:56:56.363Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Integration of Aristocrat in Laraval 4.
### Installation
To get the latest version of Theme simply require it in your `composer.json` file.
~~~
"matrix/aristocrat": "dev-master"
~~~
You'll then need to run `composer install` to download it and have the autoloader updated.
Once Aristocrat is installed you need to register the service provider with the application.
Open `app/config/app.php` and find the `providers` index and add the following line.
~~~
'providers' => [
'Matrix\Aristocrat\ServiceProvider',
]
~~~
You need register the facade in the `aliases` index in same `app/config/app.php` file.
~~~
'aliases' => [
'Aristocrat' => 'Matrix\Aristocrat\Facade',
]
~~~
### Usages
~~~
class HomeController extends BaseController {
public function getIndex(){
$restult = Aristocrat::selectData();
}
}
~~~