diydeveloper / cms-canvas

Laravel CMS
36 stars 33 forks source link

Error install #22

Closed yuri25 closed 5 years ago

yuri25 commented 7 years ago

php artisan db:seed --class="CmsCanvas\Database\Seeds\DatabaseSeeder" Seeding: CmsCanvas\Database\Seeds\LanguagesTableSeeder

[Illuminate\Database\QueryException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cmscanvas.languages' doe sn't exist (SQL: delete from languages)

[PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cmscanvas.languages' doe sn't exist

yuri25 commented 7 years ago

In Openserver.... http://canvas/sitemin

Sorry, the page you are looking for could not be found.

1/1 NotFoundHttpException in RouteCollection.php line 161: in RouteCollection.php line 161 at RouteCollection->match(object(Request)) in Router.php line 766 at Router->findRoute(object(Request)) in Router.php line 621 at Router->dispatchToRoute(object(Request)) in Router.php line 607 at Router->dispatch(object(Request)) in Kernel.php line 268 at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php line 53 at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 46 at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137 at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33 at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 104 at Pipeline->then(object(Closure)) in Kernel.php line 150 at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117 at Kernel->handle(object(Request)) in index.php line 53

diydeveloper commented 5 years ago

It sounds like you didn't run "php artisan migrate" first or it didn't succeed. Be sure to publish all of the package files first and then run "php artisan migrate". Make sure this step succeeds before attempting to seed the database.

The database migration for the table mentioned exists here https://github.com/diyphpdeveloper/cms-canvas/blob/master/src/database/migrations/2015_01_01_000000_cms_canvas_create_languages_table.php.