You can create migration using this command
The --table
and --create
options may also be used to indicate the name of the table and whether the migration will be creating a new table. These options simply pre-fill the generated migration stub file with the specified table:
php artisan make:migration create_users_table --create=users
php artisan make:migration add_votes_to_users_table --table=users
Now for inserting data you can use Seeder
To generate a seeder, execute the make:seeder
Artisan command. All seeders generated by the framework will be placed in the database/seeds
directory:
php artisan make:seeder UsersTableSeeder
Client side
Installation
- There are several ways of downloading the application:
Use GitHub: simply click the Clone or download button at the top right of this page and choose Download ZIP
Use Git: git clone https://github.com/austintoddj/canvas.git
- Run composer install from the command line in the project root.
- Run npm install from the command line in the project root if you installed any additional packages.
- Run php artisan migrate to install migrations
- php artisan db:seed to seed your tables
Copy the contents of .env.example and create a new file called .env in
the project root. Set your application variables in the new file. Be
sure to keep the value of APP_ENV set to local for the duration of the
install.
Run php artisan canvas:install and follow the on-screen prompts.