library laracart
Eloquent Models for Opencart entities
exfriend/laracart
Eloquent Models for Opencart entities
- Friday, September 2, 2016
- by exfriend
- Repository
- 2 Watchers
- 12 Stars
- 18 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 3 Versions
- 0 % Grown
Laracart
This package provides a set of Eloquent ORM models for OpenCart entities.
Using this package you can access your OpenCart database tables inside Laravel., (*1)
Installation
composer require exfriend/laracart
Update your .env file (affects only Laracart):, (*2)
DB_PREFIX=oc_
Usage
use \Exfriend\Laracart\Models\Manufacturer;
$manufacturer = Manufacturer::create([
'name' => 'Canon',
'image' => 'catalog/demo/canon.jpg',
'sort_order' => 0
]);
$manufacturer->description()->create([
'name' => 'Canon',
'description' => 'Better than Nikon.'
'language_id' => 1
]);
$manufacturer->stores()->attach(0);
Contributing
This package is work in progress. Please submit your pull requests with new models., (*3)
dev-master
9999999-dev
Eloquent Models for Opencart entities
Sources
Download
MIT
by
Vladislav Otchenashev
0.1.1
0.1.1.0
Eloquent Models for Opencart entities
Sources
Download
MIT
by
Vladislav Otchenashev
0.1.0
0.1.0.0
Eloquent Models for Opencart entities
Sources
Download
MIT
by
Vladislav Otchenashev