Answers for "table in laravel"

PHP
1

create table laravel

php artisan make:migration create_table_name --create=tablel_name
php artisan migrate
Posted by: Guest on August-16-2021
0

laravel table in model

public $table = "dpl_user";

protected $fillable = [ 'user_id', 'fname', 'lname', 'email', 'phone', 'msg'];
Posted by: Guest on August-08-2021
0

create table laravel

php artisan make:migration create_employeeDetails_table --create=Employee
//goto create_employeeDetails_table file and add fields in table
php artisan migrate
Posted by: Guest on April-12-2021

Browse Popular Code Answers by Language