Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Yes, that's the way for the relation linking, but what is that you want to test there?

Last updated 2 years ago.
0

Hey,

above test is only there to make sure things work.

I wanted to have another test which would fail if a client had no sector associated to it and I was wondering if guarding required fields was the way to go.

Thanks for your answer.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

JoolsMcFly joolsmcfly Joined 22 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.