1 C:\laravel8 elation\vendor\laravel\framework\src\Illuminate\Database\Connection.php:527 PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `relation`.`mobiles` (errno: 150 "Foreign key constraint is incorrectly formed")") 2 C:\laravel8 elation\vendor\laravel\framework\src\Illuminate\Database\Connection.php:527 PDOStatement::execute() its erorr generate when i set forigen key set Schema::create('mobiles', function (Blueprint $table) { $table->id(); $table->string('model'); $table->unsignedBigInteger('customer_id'); $table->foreign('customer_id')->references('id')->on('customers'); $table->timestamps(); }); the second table code is public function up() { Schema::create('customers', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('email'); $table->timestamps(); }); } PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `relation`.`mobiles` (errno: 150 "Foreign key constraint is incorrectly formed")") its error
Great job. A very detailed and descriptive way of making people understand about relationship. Thanks a lot. Keep up the great work ❤❤
I'm so excited to finish this course to do my course project this semester
Amazing 🤩... Good job bro.... Can you make a video on roles & permissions ? Please
Wah Bhai :)
Kiya samjaya ap na.
Sukriya.
Awesome Tutorial.
Sir after completing this larvel tutorial can you make a python socket programming video
thanks brother best video ever
Badiya sir
Zabardast sir g..
superbb well explained!!
indeed you are legend
public function author() {} do you think if you change that to author1 will it work with belongsTo?
Larave use in c++ ?
Please after that host laravel project on internet
First view 🥰
Yy bby been moole bbye seemahttp bhul ttyl
I think the goat also wants to learn laravel too...lol
😂 ABT to say that
25:33 bhai aap ke bakri bol rahi hai😂😂😂😂
1 C:\laravel8
elation\vendor\laravel\framework\src\Illuminate\Database\Connection.php:527
PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `relation`.`mobiles` (errno: 150 "Foreign key constraint is incorrectly formed")")
2 C:\laravel8
elation\vendor\laravel\framework\src\Illuminate\Database\Connection.php:527
PDOStatement::execute() its erorr generate when i set forigen key set
Schema::create('mobiles', function (Blueprint $table) {
$table->id();
$table->string('model');
$table->unsignedBigInteger('customer_id');
$table->foreign('customer_id')->references('id')->on('customers');
$table->timestamps();
});
the second table code is public function up()
{
Schema::create('customers', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email');
$table->timestamps();
});
} PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `relation`.`mobiles` (errno: 150 "Foreign key constraint is incorrectly formed")") its error
(2) use
$table->foreignId('customer_id')->references('id')->on('customers');