N
N
nezzard2016-05-31 20:23:55
Laravel
nezzard, 2016-05-31 20:23:55

How to run a function in Laravel if the function is executed?

Good afternoon, there is a function in the controller, I run the post through the route, I need to run the following function in the same file only if the first condition is met. But unfortunately, if you run a function inside a function, nothing works, can those who know advise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2016-05-31
@OnYourLips

nothing works
This is not an explanation of the problem.
Most likely you are doing a call to the second function after return.
Also, I think you should read how middleware works: you probably want to use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question