4 years ago

How to create Year datatype (mysql) from Eloquent

Posted 4 years ago by Sithu

Hi everyone.

How can I create like that?

Schema::create('cars', function (Blueprint $table) {
            $table->custom('year'); // which is year datatype

I tried to find from Google but I got unclear solutions. Thanks.

Please sign in or create an account to participate in this conversation.