Wayne Smallman
1 min readJun 14, 2017

--

Hi, when I ran: “php artisan make:model Role -m”, I got an error: “-bash: $: command not found”. Please ignore this comment (I’d copied the $ symbol in by mistake).

However, when I ran: “php artisan migrate:refresh — seed” I got an error telling me that the tables already existed.

I did a Google and the advice was to run a rollback, but I was told there was nothing to rollback.

Now, when I click “Home” I get a ton of errors, beginning with: “SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘search4venues.roles’ doesn’t exist (SQL: select `roles`.*, `role_user`.`user_id` as `pivot_user_id`, `role_user`.`role_id` as `pivot_role_id`, `role_user`.`created_at` as `pivot_created_at`, `role_user`.`updated_at` as `pivot_updated_at` from `roles` inner join `role_user` on `roles`.`id` = `role_user`.`role_id` where `role_user`.`user_id` = 1 and `name` = employee limit 1)”

--

--