Member Since 10 Months Ago
3,700 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
Replied to Forget My Password
thank you .. where exactly should I put this code in the HomeController or somewhere else?
Started a new Conversation Forget My Password
does Laravel does not allow to send a rest link for my password when the project is working on the local host?
Replied to Can I Use Vue And React Together With Laravel?
I already finished the project with Vue. I tried to make the video call with Vue but it did not work
Started a new Conversation Can I Use Vue And React Together With Laravel?
I wanted to know if it possible to use Vue and react together with Laravel? Like my application is already done with Vue and I want to add new page for video call with react can this be possible?
Started a new Conversation Book A Doctor Appointment In Laravel
I want to add feature to my Web so that a could book a doctor appointment. I wanted to be very simple just choosing a doctor name and the date. and then it is saved in the database
does anyone knows how i could make it and if there is any resource that would help I want to make it with laravel
Replied to User Role Tables
thank you. the boolean is to make the doctors directed to dashboard that is different from the other users after login. but, i needed more information for doctors that why i needed new table for the doctors
Started a new Conversation User Role Tables
i have a user table
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->boolean('isDoctor')->default(0);
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
the column boolean('isDoctor'); is where I made where the user a doctor or patient and they both has different dashboard the doctor and the patient if isDoctor has value of one then he is a doctor and when he logged it will redirect him to the doctor dash board
i want to make a doctor table where the information of the doctor is save in it like his name which is already saved in the user table and i want to add other columns like his specialization
Does anyone knows how to make Doctor table ?
Replied to Foreign Key Problems In User Table
the doctors table:
Schema::create('doctors', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
the users table:
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->boolean('isDoctor')->default(0);
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
$table->foreignId('doctor_id')->references('id')->on('doctors')->onDelete('cascade');
});
}
Started a new Conversation Foreign Key Problems In User Table
I added a foreign key to my user table when I migrate there is an error occur
SQLSTATE[HY000]: General error: 1005 Can't create table medcare
.users
(errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table users
add constrai
nt users_doctor_id_foreign
foreign key (doctor_id
) references doctors
(id
))
when I checked my database the column has been added but this error occur I am afraid it will not work when I add data to it
Replied to Best Way To Handle Different User Roles With Specific Attributes
hello, did you solve the problem? because i am facing the same problem but i only have a doctor and an patient. when i read the comments below your question i did not quite find the answer. if you ever did find a solution it would be nice to share it.
Started a new Conversation User Roles And Tables Connections
Hello I have a project that contain a doctor and a patient i have already made the authentication and when the doctors login the redirect to dashboard which is different than the patient dashboard
public function up() { Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name');
$table->boolean('isDoctor')->default(0); >>>> here i differentiate between the doctor and patient
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
but their information is stored in the same table which is user table. i want to make a doctor table and other patient table what is the relationship that i can connect the information of the doctor in the user table to the new doctor table ???