Reputation: 4557
I have an issue with laravel.
I have created a database named billing and connection is working fine for all tables. Now I created a new table named as masters. When I'm using this table then it is showing error base table or view masters not found
How can I resolve this issue?
Upvotes: 1
Views: 90
Reputation: 10091
To create a migration, use the make:migration
Artisan command:
php artisan make:migration create_masters_table
The new migration will be placed in your database/migrations
directory.
You can use Laravel schema builder to expressively create and modify tables.
To run all of your outstanding migrations, execute the migrate Artisan command: php artisan migrate
Upvotes: 0
Reputation: 3594
This is usual for beginners. I have a few hints:
php
artisan migrate
on the command line.composer dumpautoload
and then php artisan migrate:refresh
Upvotes: 1