Member Since 7 Months Ago

Experience Points 1,980
Experience Level 1

3,020 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 18
Best Reply Awards 0
Best Reply
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    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.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

22 Dec
6 months ago

josuerhg left a reply on Creating A Personality Test With Laravel

@MIWAL - That's a good answer, thank you! I'll try to write down the ideas I have to solve this problem and then try to translate them into code. It might not be easy, but it's gonna be worth it.

josuerhg started a new conversation Creating A Personality Test With Laravel

Hey there! Two months ago I discovered Laravel and I'm absolutely loving it. I already did some very simple projects to practice, but now I would like to go try something a little bit different, that doesn't only involve the good old CRUD operations.

I'm thinking about making a personality test (MBTI, especifically) using Laravel. For those who aren't familiar with MBTI (or the "16 personalities test"), it consists on evaluating four aspects of someone's personality: Extroversion/Introversion, Intuition/Sensing, Thinking/Feeling, and Judgement/Perception. Each question of the test evaluates one of these aspects (for example: "Would you consider yourself socially awkward?"). Here's the most popular example:

However, I'm not entirely sure on how to do this on Laravel. Of course, I must make a form with all the necessary questions; I also thought about giving each question a "category" that evaluates one of the four different personality aspects. But how would I evaluate the results after submitting the form? Should I use a controller? Is Laravel adequate to make something like this?

Thanks in advance.

04 Dec
7 months ago

josuerhg started a new conversation I Need Some Guidance On Where To Start With Certain Project

Hello there, Laracasts. I'm relatively new to Laravel; I've only made one project with basic CRUD functions. However, I'd like to take it further and take on a more difficult endeavor.

What I have in mind is a web application in which users can take various psychological tests and see their results in a list. Users might be companies trying to find the best candidate for certain position, so a single user may have various "applicants", to be able to see each one's results and compare them with the others. This way, they would be able to have an idea of who the best candidate is.

However, I'm not entirely sure if Laravel is the most appropriate framework for this. Would making a traditional web app be the best option, or should I make a SPA using Laravel + Vue? As you might be able to tell, I'm overall pretty new to web development, so any kind of recommendations are welcome.

Thanks in advance, and I hope you have a wonderful weekend.

28 Nov
7 months ago

josuerhg left a reply on Trying To Update A Field From A Single Row Using A Resource Controller (Laravel 5.7)

Alright, I found the solution, the problem was my route, this is how I solved it:

Route::patch('appointment/complete/{appointment}', '[email protected]');

Instead of:

Route::patch('appointment', '[email protected]');

At least I learned I'm a noob with routing.

josuerhg left a reply on Trying To Update A Field From A Single Row Using A Resource Controller (Laravel 5.7)

Thanks for your answer, tpane! I tried that out, and now I get this error:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (hospital.appointments, CONSTRAINTappointments_doctor_id_foreignFOREIGN KEY (doctor_id) REFERENCESdoctors(id) ON DELETE CASCADE ON UPDATE CASCADE) (SQL: insert intoappointments(completed,updated_at,created_at) values (1, 2018-11-29 04:21:55, 2018-11-29 04:21:55))

josuerhg started a new conversation Trying To Update A Field From A Single Row Using A Resource Controller (Laravel 5.7)

Hello there! I'm pretty new to Laravel (I'm working on a first project and things are going well, with the exception of this error that's giving me more trouble than others. Long story short, I'm making a project in which you can manage doctors, their offices, their patients, and their appointments.

I'm trying to add a method to my Appointment Controller, in order to be able to update a single field from certain appointment (in this case, the 'completed' field. Here's my method:

''' public function complete(Appointment $appointment) { $appointment->completed = true; $appointment->save();

    return redirect('/appointment')->with('success', 'The appointment has been completed!');


I also have a button in my Show Appointment view, so that when the user clicks it, he's redirected to the Appointment Index, while the appointment is updated.

''' {!! Form::open(['action' => ['[email protected]', $appointment->id], 'method' => 'PATCH']) !!} {{ Form::hidden('_method', 'PATCH') }} {{ Form::submit('Complete appointment', ['class' => 'btn btn-success']) }} {!! Form::close() !!} '''

And, of course, I added my custom method to my web.php file:

''' Route::patch('appointment', '[email protected]'); '''

Here comes the issue. As soon as I click my "Complete appointment" button, I get the next error message:

''' SQLSTATE[HY000]: General error: 1364 Field 'date' doesn't have a default value (SQL: insert into appointments (completed, updated_at, created_at) values (1, 2018-11-29 03:57:51, 2018-11-29 03:57:51)) '''

Which is pretty odd, since I thought a PATCH method is suppose to simply update a field, but Laravel is trying to insert a completely new appointment altogether, it seems.

Does anybody have an idea about what's going on here? Help is deeply appreciated!