Horje
General error: 1215 Cannot add foreign key constraint laravel Code Example
General error: 1215 Cannot add foreign key constraint laravel
Laravel 5.8 Added bigIncrements As Defaults

So there is mismatch in foreign key field types. You see bigIncrements(id) in 
User table and unsigned Integer(user_id) in questions table.

How to fix:

1. Either change original migration from bigIncrements() to just
increments()

2. Or in your foreign key column do unsignedBigInteger() instead of 
unsignedInteger().
Laravel General error: 1215 Cannot add foreign key constraint"
 public function up()
    {
        Schema::table('tests', function (Blueprint $table) {
            $table->string('gender');
        });
    }
Source: dev.to




Php

Related
Remove public or index file from url in laravel Code Example Remove public or index file from url in laravel Code Example
how to use md5 in php Code Example how to use md5 in php Code Example
laravel web php request to redirect to another page Code Example laravel web php request to redirect to another page Code Example
show comma separated numbers in php Code Example show comma separated numbers in php Code Example
php get filetype Code Example php get filetype Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9