Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

schema create laravel

Maeron Reyes answered on March 9, 2023 Popularity 9/10 Helpfulness 1/10

Contents


More Related Answers

  • laravel model tablename
  • create table laravel
  • laravel create table with model command line
  • How to set a comment on table using Laravel Schema
  • laravel table in model
  • laravel model with methos custom columns
  • boot add schema in laravel
  • sql create schema
  • create table laravel
  • laravel Model Table
  • CREATE table schema using select
  • table laravel
  • create table laravel give name table
  • Create Table Schema
  • define table name in model laravel
  • schema key issue laravel
  • laravel creating_table_name
  • Laravel Schema Rules is a package
  • laravel schema add column

  • schema create laravel

    -1

    use Illuminate\Database\Migrations\Migration;

    use Illuminate\Database\Schema\Blueprint;

    use Illuminate\Support\Facades\Schema;

    return new class extends Migration

    {

    /**

    * Run the migrations.

    *

    * @return void

    */

    public function up()

    {

    Schema::create('tbl_accounts', function (Blueprint $table) {

    $table->id();

    $table->string("username")->nullable();

    $table->string("password")->nullable();

    $table->string("first_name")->nullable();

    $table->string("last_name")->nullable();

    $table->string("middle_name")->nullable();

    $table->string("office_address")->nullable();

    $table->string("mobile_number")->nullable();

    $table->string("date_birth")->nullable();

    $table->string("age")->nullable();

    $table->string("sex")->nullable();

    $table->string("position")->nullable();

    $table->string("degree")->nullable();

    $table->string("agency")->nullable();

    $table->string("subagency")->nullable();

    $table->string("user_type")->nullable();

    $table->timestamps();

    $table->softDeletes();

    });

    }

    /**

    * Reverse the migrations.

    *

    * @return void

    */

    public function down()

    {

    Schema::dropIfExists('tbl_accounts');

    }

    };  

    Popularity 9/10 Helpfulness 1/10 Language php
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 09 2023
    Maeron Reyes
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.