A
A
Anton2017-09-17 15:56:39
Laravel
Anton, 2017-09-17 15:56:39

Routes for all controller methods?

Hello. For example, I have a controller like this:

class PeopleController extends Controller
{
    public function age() {
        return "30";
    }

    public function name() {
        return 'Petya';
    }
}

How can you not write routes for all controller methods?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question