nasirkhan
nasirkhan

Reputation: 10553

Laravel: Base table or view not found: 1146 Table doesn't exist

I was following the default documentation and Laracst tutorials to build an application. Here is the source, https://github.com/nasirkhan/laravel-5-starter-application

Installing a new instance form this source shows the following errors, can anyone please assist me to find the issue here?

I run the following commands,

  1. git pull [email protected]:nasirkhan/laravel-5-starter-application.git

  2. composer install then i got the following error.

after getting the error i tried to run php artisan migrate but the error was not resolved.

    
[Illuminate\Database\QueryException]                                                                                                        
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-5-starter.permissions' doesn't exist (SQL: select * from `permissions`)  

  [PDOException]                                                                                           
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-5-starter.permissions' doesn't exist

Script php artisan clear-compiled handling the post-install-cmd event returned with an error


  [RuntimeException]  
  Error Output: 

Upvotes: 2

Views: 11802

Answers (2)

nasirkhan
nasirkhan

Reputation: 10553

found the solution. Updated the repo, thanks for engaging.

Upvotes: 2

Ben
Ben

Reputation: 11188

Run php artisan migrate from the console. There seems to be a permissions table which is queried but doesn't exist yet.

In the file 2015_09_10_193651_create_roles_tables.php the table gets created, as you can see here.

Upvotes: 1

Related Questions