Giter Site home page Giter Site logo

use Order out of vanilophp about order HOT 4 CLOSED

vanilophp avatar vanilophp commented on June 12, 2024
use Order out of vanilophp

from order.

Comments (4)

yusufkandemir avatar yusufkandemir commented on June 12, 2024 2

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.

fulopattila122 avatar fulopattila122 commented on June 12, 2024

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:

  1. Install the order module with composer:
composer require vanilo/order
  1. 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.

mohamedaitbella avatar mohamedaitbella commented on June 12, 2024

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

  1. Install the order module with composer:
    composer require konekt/concord
    composer require vanilo/order
  2. order is requiring this table befor order migrations so i did the migration country and addresses

screenshot 3

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

screenshot 4

from order.

fulopattila122 avatar fulopattila122 commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.