Large update for version 2.0

This commit is contained in:
Rob Gloudemans
2016-05-12 10:19:38 +02:00
parent f5f15c73a2
commit 0f20bef1af
35 changed files with 1832 additions and 1145 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Gloudemans\Shoppingcart;
use Illuminate\Support\ServiceProvider;
class ShoppingcartServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$config = __DIR__ . '/../config/cart.php';
$this->mergeConfigFrom($config, 'cart');
if ( ! class_exists('CreateShoppingcartTable')) {
// Publish the migration
$timestamp = date('Y_m_d_His', time());
$this->publishes([
__DIR__.'/../database/migrations/0000_00_00_000000_create_shoppingcart_table.php' => database_path('migrations/'.$timestamp.'_create_shoppingcart_table.php'),
], 'migrations');
}
}
}