A
A
Ann20162016-12-02 11:38:49
Laravel
Ann2016, 2016-12-02 11:38:49

Stretila such a design, what does it mean?

return with(new static)->getData()
In particular, the with() function is of interest, I can’t find explanations

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-12-02
@Ann2016

An instance of the class is created and the result of the getData() method of that class is returned.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question