A
A
Alina2020-12-11 12:51:40
Laravel
Alina, 2020-12-11 12:51:40

How to get data from second base in Blade?

I transfer data from the database from the controller to the template, it displays a data plate in a cycle. And how can I make a new request depending on the data in the first table.
For example, a list of applications (name, phone number) is displayed, but how can I immediately display data in the same table if this user has a signed contract in the past (from the contract table and search by phone number)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2020-12-11
@rivaufa

https://laravel.com/docs/8.x/eloquent-relationship...
https://laravel.com/docs/8.x/eloquent-relationship...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question