dan-powell / shop
Super Simple Shop for Laravel 5
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Requires
- alfredo-ramos/parsedown-extra-laravel: ~0.3
- baum/baum: ~1.1
- edvinaskrucas/notification: 5.*
- fzaninotto/faker: ~1
- ignited/laravel-omnipay: 2.*
- laravel/framework: 5.1.*
- laravelcollective/html: 5.1.*
- omnipay/paypal: ~2.0
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-09 19:34:35 UTC
README
This software is pre-alpha, don't bother to use it just yet...
Install
$ composer require dan-powell/shop
-
config/app.php
DanPowell\Shop\ShopServiceProvider::class, AlfredoRamos\ParsedownExtra\ParsedownExtraServiceProvider::class, Baum\Providers\BaumServiceProvider::class, Ignited\LaravelOmnipay\LaravelOmnipayServiceProvider::class Krucas\Notification\NotificationServiceProvider::class,
Aliases
'Str' => Illuminate\Support\Str::class,
'Markdown' => AlfredoRamos\ParsedownExtra\Facades\ParsedownExtra::class,
'Omnipay' => Ignited\LaravelOmnipay\Facades\OmnipayFacade::class
'Notification' => Krucas\Notification\Facades\Notification::class,
Kernel middleware array (must be placed after 'Illuminate\Session\Middleware\StartSession' middleware)
\Krucas\Notification\Middleware\NotificationMiddleware::class,
-
publish assets
php artisan vendor:publish --tag='migrations'
php artisan vendor:publish --tag='config'
php artisan vendor:publish --provider='AlfredoRamos\ParsedownExtra\ParsedownExtraServiceProvider' --force
-
migrations
php artisan migrate
-
Add user
php artisan shop:adduser
Updating
-
publish assets
php artisan vendor:publish --tag='migrations' php artisan vendor:publish --tag='admin'
-
migrations
php artisan migrate
Seeding
-
publish
php artisan vendor:publish --tag='dev' --force
-
DatabaseSeeder.php
$this->call('ShopSeeder');
-
Seed
composer dump-autoload php artisan db:seed
Testing
Publish those assets
php artisan vendor:publish --tag='tests' --force
config/database.php
'testing' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'shop_testing',
'username' => 'homestead',
'password' => 'secret',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
test/functional.suite.yml
modules:
enabled:
- Laravel5:
environment_file: .env.testing
.env.testing
APP_ENV=testing
APP_DEBUG=true
APP_KEY=AqBqHv6GYO2PSIY3PIVO3o4zdcKovDdN
BASE_URL=http://shop.dev
DB_HOST=localhost
DB_DATABASE=shop_testing
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
Migrate
php artisan migrate --database=testing
Run
php ./vendor/bin/codecept run
Roadmap
TODO: Replace hard-coded strings with language file (including validation messages)
TODO: Finish checkout process
TODO: Add callback (send order ID as encrypted string)
TODO: Pagination