Laravel - Database Basics and Migrations
Which of the following is the correct syntax to add a string column named
title in a Laravel migration?title in a Laravel migration?string for VARCHAR columns, so $table->string('title'); is correct.text is for longer text, varchar is not a Laravel method, char is fixed length and less common.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions