Why can laravel directly display the content of the controller without a view?
天蓬老师
天蓬老师 2017-05-16 16:46:30
0
1
298

TP3.2 I remember that if I want to display something, I need a view, but laravel can display it without a controller. How did this happen?

Route::get('/', function () {
    return 222;
});
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
Ty80

display and view have nothing to do with each other.

Don’t think about Laravel in terms of TP.

are all PHP frameworks, as long as echoprintprintfdieexit,... can be output.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template