The most basic Laravel routes accept a URI and a closure, providing a very simple and expressive method of defining routes and behavior without complicated routing configuration files:<\/p>\n

\n
1<\/span>use<\/span> Illuminate\\Support\\Facades\\<\/span>Route<\/span>;<\/span><\/div>
2<\/span> <\/div>
3<\/span>Route<\/span>::<\/span>get<\/span>(<\/span>'<\/span>\/greeting<\/span>'<\/span>, <\/span>function<\/span> <\/span>()<\/span> {<\/span><\/div>
4<\/span> <\/span>return<\/span> <\/span>'<\/span>Hello World<\/span>'<\/span>;<\/span><\/div>
5<\/span>});<\/span><\/div>