hardevine / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
348 stars 120 forks source link

incorrect migration #38

Closed WebGenerator closed 2 years ago

WebGenerator commented 3 years ago

SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '' (SQL: create table ` (identifiervarchar(255) not null,instancevarchar(255) not null,contentlongtext not null,created_attimestamp null,updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

WebGenerator commented 3 years ago

why does not the migration see the config Schema::create(config('cart.database.table'), function (Blueprint $table) { $table->string('identifier'); $table->string('instance'); $table->longText('content'); $table->nullableTimestamps();

        $table->primary(['identifier', 'instance']);
    });
WebGenerator commented 3 years ago

Class 'Gloudemans\Shoppingcart\ShoppingcartServiceProvider' not found It's after composer remove. Nice package

hardevine commented 3 years ago

kindly check if you can print config variables in tinker / web routes