Comments (4)
Advice
order is requiring this table befor order migrations so i did the migration country and addresses
i escapte this error by doing it manialy
enum type ['billing','business','contract','mailing','pickup','residential','shipping','']
You must add konekt/address
module to fix that error, don't do it manually. konekt/address
is already a dependency for vanilo/order
so you don't need to add it with composer. But you must add the module to config/concord.php
like so:
<?php
return [
'modules' => [
Vanilo\Order\Providers\ModuleServiceProvider::class,
Konekt\Address\Providers\ModuleServiceProvider::class,
]
];
The Fix
now it give me this error
FQN(Fully Qualified Name) for Order model is
Vanilo\Order\Models\Order
not
Vanilo\Order\Model\Order
s is missing.
Extra Note for Laravel 5.8+ Users
You need to change bigIncrements
Schema::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
...
to increments
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
...
in users migration.
Or if you want to keep it that way, you can change every $table->integer('user_id')->unsigned()
in module migrations to $table->bigInteger('user_id')->unsigned()
. This can be changed in the near future, you can follow this issue.
from order.
1.) yes this is completely fine, the module was designed to be usable standalone.
2.) Migrations are in the src/resources/database/migrations folder.
They get automatically registered if you properly boot the module:
- Install the order module with composer:
composer require vanilo/order
- Add the module to
config/concord.php
:
<?php
return [
'modules' => [
Vanilo\Order\Providers\ModuleServiceProvider::class
]
];
To get you on the right path, please read these sections, it takes 10 minutes and they're crucial:
https://vanilo.io/docs/0.4/modules-vs-framework
https://vanilo.io/docs/0.4/concord
https://vanilo.io/docs/0.4/models
https://vanilo.io/docs/0.4/orders
from order.
thank you for your prompt reply
let me please share what i did maybe maybe i forget something or something is missing at least for me .
**- im working on larave 5.7 php 7.2
what i did / steps to reproduce error
- Install the order module with composer:
composer require konekt/concord
composer require vanilo/order
- order is requiring this table befor order migrations so i did the migration country and addresses
i escapte this error by doing it manialy
enum type ['billing','business','contract','mailing','pickup','residential','shipping','']
3. step 3
php artisan vendor:publish --provider="Konekt\Concord\ConcordServiceProvider" --tag=config
return [ 'modules' => [ Vanilo\Order\Providers\ModuleServiceProvider::class ] ];
and lastly run order migration
' php artisan migrate '
now it give me this error
from order.
The bigInteger issue is gone now, you could either upgrade the Order module to 0.5.2
or to 1.0@dev
The safest way is to run:
composer update vanilo/order
from order.
Related Issues (5)
- Package stability HOT 1
- Extend OrderItem model HOT 2
- Create order HOT 3
- Address type constraint mismatch HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from order.