Laravel Basic #2

Mario tsai
Aug 16, 2021

MySQL DB make Table

use Illuminate\Support\Facades\DB;

  1. getData from DB

Within Function


$data = DB::table(‘table_name’)-> getData();


2. make a table


php artisan make:migration create_AAAAAs

Set your Column

public function up()
Schema::create('AAAAAs', function (Blueprint $table) {
$table->string('title') ;

And Command

php artisan migrate



Mario tsai

Major in physical education. Football referee. And high interest in looking the world through the numbers.