qgis在地图上画导航线
For further process we need to know something about it,
为了进一步处理,我们需要了解一些有关它的信息,
The route is a core part in Laravel because it maps the controller for sending a request which is automatically loaded by the Laravel framework.
路由是Laravel中的核心部分,因为它映射了用于发送由Laravel框架自动加载的请求的控制器。
在Laravel中的航线 (Route in Laravel)
Now, here we create a new route named "post" for postcontroller.php from which PostController.php can handle all the process.
现在,我们在这里创建了一个名为“邮报”的postcontroller.php从PostController.php可以处理所有的新Craft.io路线 。
Path: "routes/web.php"
路径: “ routes / web.php”
Here, get is the method like PHP "get" and "post" methods.
在这里, get是类似于PHP的“ get”和“ post”方法的方法。
The route has two parameters "URL" and "closure" function, which is an anonymous function that is used as a parameter to another function.
该路由具有两个参数“ URL”和“关闭”函数,这是一个匿名函数,用作另一个函数的参数。
In the Route::resource('posts','PostController');
在Route :: resource('posts','PostController');
Here, posts in place of URL because it is mandatory to pass the parameter in place of URL. It is used to open and show the static pages made by us in resources/views directory and controlling by the controller's file like PostController.php.
在这里,在地方的网址 ,因为它是强制性的帖子传递参数到位的URL。 它用于打开和显示我们在resources / views目录中创建的静态页面,并由控制器的文件(如PostController.php)进行控制。
Here, we are using "resources" in place of "get", because our view page is in the resource directory which is controlled by PostController.php.
在这里,我们使用“ resources”代替“ get” ,因为我们的视图页面位于由PostController.php控制的资源目录中。
Conclusion:
结论:
In this article, we have learnt about the routes in Laravel. I hope you understood the concept, will know more about it in the upcoming articles. Have a great day! Happy Learning!
在本文中,我们了解了Laravel的路线 。 希望您理解该概念,在以后的文章中会对此有所了解。 祝你有美好的一天! 学习愉快!
翻译自: https://www.includehelp.com/laravel/route.aspx
qgis在地图上画导航线