mjawad096 / laravel-grapesjs

This package provide an esay way to integrate GrapesJS into your laravel proejct.
MIT License
108 stars 54 forks source link

A table was not found #2

Closed billiemead closed 2 years ago

billiemead commented 2 years ago

Immediately after install:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aec53a.media' doesn't exist (SQL: select * frommedia)

Great job, looking forward to implementing this!

billiemead commented 2 years ago

So I found the other repo and see its now integrated, so I manually ran

php artisan vendor:publish --provider="Dotlogics\Media\MediaServiceProvider" --tag="migrations"

and then

php artisan migrate

Just an FYI, this creates a MYSQL table named temp_media but Laravel is still looking for a table named media

ghost commented 2 years ago

Noted for next release.

This package uses Spatie "MediaLibrary" package. So for now you can publish it manually by running this.

php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations"

and then

php artisan migrate

it will start working. Thanks.

vahidalvandi commented 2 years ago

thanks