S
S
seredaes2016-05-23 23:36:10
Laravel
seredaes, 2016-05-23 23:36:10

How to dynamically load controller or view in Laravel routing?

In CakePHP you can specify
$routes->connect('/:controller/:action/*');
...and after that, for example, the address /home/news means that you need to connect the home controller and the news view,
and how to implement this in Laravel.
I searched on Google, it seems like this can not be done without crutches. Please confirm or refute this.
Thanks in advance :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2016-05-23
@seredaes

1. laravel.com/docs/5.1/controllers#implicit-controllers
2. stackoverflow.com/a/24804590/2327681

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question