Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dbrower256's avatar

what does the word "resolve" mean

Jeffrey,

What is the technical definition of the word "resolve" as used in the documentation of Laravel 5.4?

Daniel

0 likes
3 replies
jlrdw's avatar

I am not Jeffrey but an example would be correctly resolve your path. You see things like

../../apath

Of course that's not the only usage of that word.

Snapey's avatar

it means when you find out the answer, or find a resolution

like you can resolve a crossword (find all the clues) or resolve a crime (find out who did it), or resolve a mathematical sum (3x+1=7)

so in programming terms it means when you use some information to discover some other information - so not as simple as $x * $y but rather for instance when one variable points to another variable which in turn represents some sort of service.

eg

Laravel automatically resolves Eloquent models defined in routes or controller actions whose type-hinted variable names match a route segment name. For example:

Route::get('api/users/{user}', function (App\User $user) {

So what taylor means, the framework looks to clues in other parts of the code to understand what {user} might represent - it 'solves it'. In this case it sees $user and the hint that $user should be an instance of User and therefore that {user}is the key to finding the correct model

6 likes

Please or to participate in this conversation.