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在地圖上畫導航線