Skip to content

Instantly share code, notes, and snippets.

@jahidulsaeid
Last active October 5, 2020 08:40
Show Gist options
  • Save jahidulsaeid/0167eacfad94b19114265b1e3d31b918 to your computer and use it in GitHub Desktop.
Save jahidulsaeid/0167eacfad94b19114265b1e3d31b918 to your computer and use it in GitHub Desktop.

Some laravel command

Create Controller

$ php artisan make:controller NameController

Create Model

$ php artisan make:model Todo

Create Database

$ cd c:\xampp\mysql\bin
MariaDB [(none)]> create database database_name;
edit .env file DB_DATABASE=database_name

Database migration

$ php artisan make:migration create_todos_table

Database migrate

php artisan migrate

Database rollback or down function

php artisan migrate:rollback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment