Laravel api routes 404

If something goes wrong, you often see default Laravel texts like "Whoops, something went wrong" or, even worse, the exception code, which is not helpful at all to the visitor. ... Laravel would show 404 page with text ... My take on this - is that service should take any logic unrelated to routing (which should be in controller) and model ...Breeze seems to be Tailwind-based, but the majority of developers don't use Tailwind. Searching the documentation for scaffolding brings up this page for Laravel 6, and clicking the link to go to a Laravel 8 equivalent takes you to the generic Installation page, which is worrying to say the least. 1.Laravel Version: 7.25.0; PHP Version: 7.4; Database Driver & Version: MySQL 5.7; Description: Route::permanentRedirect and Route::redirect do not seem to work as expected in api.php.It does not seem to work at all and you can only use the Route::redirect's within web.php. None of the following work in api.php:sorry if this a double post but I cant find the problem with this I installed Dingo api on a server with NGINX PHP56 but everytime I acc...404 Responses in a Laravel API Tutorials August 16th, 2018 A useful feature that shipped in Laravel 5.5 is fallback routing. You can learn about fallback routing in Better 404 responses using Laravel +5.5 by Mohamed Said (the author of the feature) to get the full picture of why it’s useful and how to use fallback routes. Routes defined in the routes/api.php file are nested within a route group by the RouteServiceProvider. Within this group, the /api URI prefix is automatically applied so you do not need to manually apply it to every route in the file. You may modify the prefix and other route group options by modifying your RouteServiceProvider class. Hello, when I try to access my test app, just the index route works:malte.italoborg.es If I try to access another route, like:malte.italoborg.es/admin …About This Episode. To help improve performance, any route can be lazily-loaded by embracing Vue's async components and webpack's code-splitting feature. Don't worry: I hate confusing jargon, too. Let's break it down and review exactly when and why you might consider lazy loading certain routes in your app. View the source code for this episode ... Categories Jasa pembuatan website. Yudith Hentreisa. March 31, 2022. Promo Jasa Aplikasi Laravel April 2022 - Dibulan ini, kami, dari Sundakreatif.com, akan menawarkan promo potongan harga yang menarik bagi anda yang akan membuat website. Anda akan mendapatkan diskon untuk membuat website Laravel sebesar 10% untuk setiap pembuatan aplikasi baru.21. 22. 23. Specify a default route prefix and middleware in the package's config.php file: 'prefix' => 'blogger', 'middleware' => ['web'], // you probably want to include 'web' here. 1. 2. In the above default configuration, all routes defined in routes.web need to be prefixed with /blogger. In this way, collision with potentially existing ...About This Episode. To help improve performance, any route can be lazily-loaded by embracing Vue's async components and webpack's code-splitting feature. Don't worry: I hate confusing jargon, too. Let's break it down and review exactly when and why you might consider lazy loading certain routes in your app. View the source code for this episode ... API routes provide built in middlewares which parse the incoming request ( req ). Those middlewares are: req.cookies - An object containing the cookies sent by the request. Defaults to {} req.query - An object containing the query string. Defaults to {} req.body - An object containing the body parsed by content-type, or null if no body was sent.May 19, 2020 · Why laravel api.php routes give a 404 error? Ask Question Asked 2 years, 11 months ago. Modified 1 month ago. Viewed 13k times 0 I'm using laravel 5.8.24 in Ubuntu 18 ... Find centralized, trusted content and collaborate around the technologies you use most. Learn moreApr 05, 2021 · In Laravel, we can register our API routes inside the routes/api.php file. All routes in here will be prefixed with API. We could add all our routes manually like this: Route::get('books', '[email protected]'); Route::post('books', '[email protected]'); However, Laravel comes with another handy technique that allows us to create a ... To expose soft-deleting capabilities to a client, you need to add two things to your resource's schema. Firstly, you need to add the LaravelJsonApi\Eloquent\SoftDeletes trait. And secondly, you need to add a LaravelJsonApi\Eloquent\Fields\SoftDelete field to your fields list. Both are shown in the following example:Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.Let us now understand the steps involved in routing mechanism in detail −. Step 1 − Initially, we should execute the root URL of the application. Step 2 − Now, the executed URL should match with the appropriate method in the route.php file. In the present case, it should match the method and the root ('/') URL.Forum 404 when navigating to a get route in laravel on production. truetaurus. 3 years ago Laravel Laravel.io Laravel Laravel.io Last updated 1 month ago. ... (first time deploying my laravel api to production). Maybe someone here hass some experience. 0 truetaurus. 3 years agoStep 2: Use Sanctum. In this step we need to install sanctum via the Composer package manager, so one your terminal and fire bellow command: After successfully install package, we need to publish configuration file with following command: php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider".Aug 07, 2019 · _ You app is routing Route fallback -> 404 _ Check if Controller Auth\LoginController is OK _ Check if Method login in Auth\LoginController is Ok _ Check if Middleware \Illuminate\Session\Middleware\AuthenticateSession::class is working well in app\HTTP\Kernel.php _ Maybe is some code in Middleware that don't allows you route. it's because is ... URL Route Name; GET /posts: posts.index: POST /posts: posts.create: GET /posts/{record} posts.read: PATCH /posts/{record} posts.update: DELETE /posts/{record} posts ...Apr 05, 2021 · In Laravel, we can register our API routes inside the routes/api.php file. All routes in here will be prefixed with API. We could add all our routes manually like this: Route::get('books', '[email protected]'); Route::post('books', '[email protected]'); However, Laravel comes with another handy technique that allows us to create a ... Currently I have Laravel in /var/www/laravel an... Stack Exchange Network Stack Exchange network consists of 180 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Jan 22, 2019 · One is a Laravel (PHP) application and an Angular application (Front-end) running. I have noticed that last week, all the backend application (PHP) routes started throwing 404 Not Found errors. I restarted my nginx, still it was coming. Finally I restarted my aws instance and it started working fine. In this Laravel API tutorial, we explore the ways to build — and test — a robust RESTful web service using Laravel. ... This way, Laravel will inject the Article instance in our methods and automatically return a 404 if it isn't found. We'll have to make changes on the routes file and on the controller: ... routes/api.php: Route::post ...Let us now understand the steps involved in routing mechanism in detail −. Step 1 − Initially, we should execute the root URL of the application. Step 2 − Now, the executed URL should match with the appropriate method in the route.php file. In the present case, it should match the method and the root ('/') URL.Tip 1. Switch APP_DEBUG=false Even Locally. There's one important setting in .env file of Laravel - it's APP_DEBUG which can be false or true. If you turn it on as true, then all your errors will be shown with all the details, including names of the classes, DB tables etc.You are already familiar with the term RESTful APIs. For the back-end, we will be using the Laravel 8 with MySQL Database. Lets get started: Step 1: Create React App. You'll need to have Node >= 10.16 and npm >= 5.6 on your machine. To create a project, run: Open your terminal: $ npx create-react-app studentcrud. cd studentcrud.Here are the instructions going toward building an uncomplicated, secure restful api in the laravel 8 app. Step 1: Create Laravel Project. Step 2: Add Database Details. Step 3: Install Laravel Sanctum Pacakage. Step 4: Setting Up Sanctum. Step 5: Update Model and Run Migration. Step 6: Build API Resources.Today I will give you example of laravel 8 REST API with passport authentication. Also perform CRUD operation with laravel 8 REST API. In this tutorial I will give you information about rest api, REST API is an application program interface that uses HTTP requests to GET, PUT, POST and DELETE data.URL Route Name; GET /posts: posts.index: POST /posts: posts.create: GET /posts/{record} posts.read: PATCH /posts/{record} posts.update: DELETE /posts/{record} posts ...Dec 09, 2021 · Then afterwards, I will explain how to create an android app that will interact with the Laravel REST API. Prerequisites . For the purpose of this blog, I assume that you have a Laravel application installed on a web server. My setup is. Laravel 5.6 For Android. Android Studio; Android SDK ; For Laravel API. Live Web Server; Laravel / Lumen 5.6 It is very important to note that we did not need to specify the full controller namespace when defining the controller route. We only defined the portion of the class name that comes after the App\ Http\Controllers namespace "root". By default, the bootstrap / app. php file will load the routes. php file within a route group containing the ...Step 4: Create Controller. php artisan make:controller API/ProgramController. Then we need to create a new controller to create CRUD logic with Sanctum's REST API. Run the artisan command as above to create a ProgramController.php file in the app/Http/Controllers/API directory.Laravel 6护照未经授权的401错误. 发表时间:2022-02-18发布者:JieRoute Model Binding in Laravel. Route Model Binding provides a mechanism to bind/inject a model instance in the route. It's a neat way to validates a model Id injected in the route by injecting a Model instance. In this method, we directly inject the model instance by passing the type hinted variable as a parameter in the closure.Forum 404 when navigating to a get route in laravel on production. truetaurus. 3 years ago ... Routes defined in api.php have api prefix defined automatically. Laravel API route get 404 on Nginx. I have a Laravel project. It works on Mac os with nginx. ... All routes inside web.php work fine but API routes not working! Same configuration is working on an Ubuntu server! php laravel nginx routing centos. Felicita. 2 Years ago . Answers 1. Subscribe. Submit Answer. Keyshawn . 2 Years ago .Laravel has a bunch of features that makes development much easy. One of these features is Route Model binding so instead of using the primary key of the table to fetch the data of a single item we can take the advantage of route model binding as shown below.. Let's demonstrate this with an example. Consider we have a posts table and we have a post model.About This Episode. To help improve performance, any route can be lazily-loaded by embracing Vue's async components and webpack's code-splitting feature. Don't worry: I hate confusing jargon, too. Let's break it down and review exactly when and why you might consider lazy loading certain routes in your app. View the source code for this episode ... Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching. Testing the Api. I have to admit, I'm in love with PhpStorm, and for testing the Rest APIs I use a tool called Rest Client. It's a graphical interface which simplifies the testing.Let us now understand the steps involved in routing mechanism in detail −. Step 1 − Initially, we should execute the root URL of the application. Step 2 − Now, the executed URL should match with the appropriate method in the route.php file. In the present case, it should match the method and the root ('/') URL.LaravelBroadcast-组合多个中间件(web、auth:api)(LaravelBroadcast-Combiningmultiplemiddleware(web,auth:api)),我正在使用LaravelEventBroadcast和Pusher在我的API和Web上使用websoURL Route Name; GET /posts: posts.index: POST /posts: posts.create: GET /posts/{record} posts.read: PATCH /posts/{record} posts.update: DELETE /posts/{record} posts ...如何在Laravel的Pivot表中保存许多数据 我可以运行Laravel 8.*在PHP 7.4上吗?[关闭] 如何使用Laravel关系使用Orderby? 如何通过Laravel中的一个数据视图和其他查看页面 Laravel 9中的`fornctecon'方法等效The routes defined in routes/api.php are assigned with the API middleware group, and they are stateless. We will start by defining the routes in routes/web.api file. The routes defined in the routes/web.php can be accessed by entering the defined URL to the browser. Let's understand this through an example. The definition of default route files. Apr 24, 2021 · Step 3: Configure Sanctum. In User model you have to add HasApiTokens trait of Sanctum and In auth.php, we added api auth configuration. use Laravel\Sanctum\HasApiTokens; class User extends Authenticatable { use HasApiTokens, HasFactory, Notifiable; } The routes in routes/api.php are stateless and are assigned the api middleware group. ... Laravel route model binding provides a convenient way to automatically inject the model instances directly into your routes. For example, instead of ... If a matching model instance is not found in the database, a 404 HTTP response will automatically be ...After going trough some forums i think it has something to do with my apache configuration and the modrewrite rule. So i will provide all the files i edited to try and fix this : **.htacess file in public folder : **. <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On RewriteBase /var/www ...Routes defined in the routes/api.php file are nested within a route group by the RouteServiceProvider. Within this group, the /api URI prefix is automatically applied so you do not need to manually apply it to every route in the file. You may modify the prefix and other route group options by modifying your RouteServiceProvider class. In this tutorial i am going to perfome crud operation using rest api and you can learn how to create rest api with authentication using passport in laravel 7 application. here we will get data from api. Laravel provide easy way to create api. if you have authentication in your mobile app than you can easily do it using passport.The missing() method works with route caching and should clean up scenarios where you'd like some custom handling when route model binding throws a ModelNotFound exception.. It's features like this that make Laravel such a pleasure to use. A HUGE shout out to Adam Campbell for contributing this feature!. Learn More. This method is documented with routing under Customizing Missing Model ...sorry if this a double post but I cant find the problem with this I installed Dingo api on a server with NGINX PHP56 but everytime I acc...API REST en Laravel 5.1 - Versionando una API. Cuando desarrollamos una API REST es una buena práctica manejar todos los cambios de funcionalidades de la misma a través de versiones que se manejan como un parámetro en la url de la misma, de tal forma un cliente puede hacer peticiones a cualquiera de las versiones de la API que esté ...In this tutorial i am going to perfome crud operation using rest api and you can learn how to create rest api with authentication using passport in laravel 7 application. here we will get data from api. Laravel provide easy way to create api. if you have authentication in your mobile app than you can easily do it using passport.RESTful APIs For Todo App Using Passport Auth in Laravel 8. Laravel passport authentication provides the authentication token to authorize the HTTP requests. It is most important to check the authorized requests in any API. Laravel passport is one of the secure API authentication packages. It uses Client Id and Client Secret to generate the token.api/users | | App\Http\Controllers\[email protected] | api,auth:api. So i am successfully getting a password token via /oauth/token, however I am then unable to use the token in a request to the above, instead I am getting 404'd. Is anyone aware of this issue, or know of the best way to debug the setup?Testing the Api. I have to admit, I'm in love with PhpStorm, and for testing the Rest APIs I use a tool called Rest Client. It's a graphical interface which simplifies the testing.Well, the good news is starting from Laravel 7, you can do just that. You may also like: Laravel Route Model Bindings - Implicit Vs. Explicit. Model bindings using custom columns. To actually use a different column/field in the binding, you'd just need to pass in the column in the route parameter definition like so.Is it possible to show new added Laravel resources API fields on specific routes? Example: I have a UserResource which has 3 fields - id, name and email. I'm returning UserResource in 10 routes. For 11th route added new field - posts. Is it possible to show new posts field only for 11th route?I’m trying to use simple laravel api for getting and sending requests, after define this api routes in ... Api/v1/login is a 404. If you remove /Api, and just ... Properties can ONLY be either JavaScript-friendly data types ( string, int, array, boolean ), OR one of the following PHP types: Stringable, Collection, DateTime, Model, EloquentCollection. protected and private properties DO NOT persist between Livewire updates. In general, you should avoid using them for storing state. URL Route Name; GET /posts: posts.index: POST /posts: posts.create: GET /posts/{record} posts.read: PATCH /posts/{record} posts.update: DELETE /posts/{record} posts ...Well, the good news is starting from Laravel 7, you can do just that. You may also like: Laravel Route Model Bindings - Implicit Vs. Explicit. Model bindings using custom columns. To actually use a different column/field in the binding, you'd just need to pass in the column in the route parameter definition like so.Apr 05, 2021 · In Laravel, we can register our API routes inside the routes/api.php file. All routes in here will be prefixed with API. We could add all our routes manually like this: Route::get('books', '[email protected]'); Route::post('books', '[email protected]'); However, Laravel comes with another handy technique that allows us to create a ... Step 2: Use Sanctum. In this step we need to install sanctum via the Composer package manager, so one your terminal and fire bellow command: After successfully install package, we need to publish configuration file with following command: php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider".In the next step, we'll modify the application's main route to query for data in the database using Laravel's DB facade. Step 6 — Customizing the Main Page Assuming you've followed all the steps in this guide so far, you should have a working Laravel application and a database table named places containing some sample data.Routing in Laravel allows you to route all your application requests to its appropriate controller. ... What is REST api routes? Folllowings are some of the commonly used http methods: These methods basically corresponds to create, read, update and delete operations. ... How to define 404 route? Using the Route:: ...Build a REST API with Laravel API resources. This tutorial shows how to use Laravel API resources feature to build a REST API. API resources were introduced in Laravel 5.5. Before the introduction of API resources, we often used a package like fractal as a transformation layer to output JSON responses when building REST APIs.May 19, 2020 · Why laravel api.php routes give a 404 error? Ask Question Asked 2 years, 11 months ago. Modified 1 month ago. Viewed 13k times 0 I'm using laravel 5.8.24 in Ubuntu 18 ... Then you need to make sure that the api guard is specified for any API routes. Unfortunately, Laravel is not able to determine this by itself; it simply defaults to the web guard. Route::group(['middleware' => ['auth:api']], function() { // API routes here }); Finally you just need to pass this api_token when sending an API request. There are ...Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching. Note: All API requests will need the header Accept: application/json. Add the routes to the API routes file, to access all the functions we wrote. Now, open routes/api.php and update the following ...Now, let's get to Laravel Socialite and Google Sign In implementation. Step 1. Preparation: Fresh Project. We will start with totally fresh Laravel 5.7 project. After installation, we launch this command to generate login/register views: php artisan make:auth. Step 2. DB Changes in Users Table.Mar 29, 2016 · After the most recent Dingo commit, my route to api/auth would return a 404 instead of routing to the AuthenticateController. I found that if I changed the API_PREFIX in my .env file to /api/ (with slashed at the beginning and end), it would start working again. Update: Now after added /api/ to my .env file, it breaks other non-api routes. Let us now understand the steps involved in routing mechanism in detail −. Step 1 − Initially, we should execute the root URL of the application. Step 2 − Now, the executed URL should match with the appropriate method in the route.php file. In the present case, it should match the method and the root ('/') URL.Properties can ONLY be either JavaScript-friendly data types ( string, int, array, boolean ), OR one of the following PHP types: Stringable, Collection, DateTime, Model, EloquentCollection. protected and private properties DO NOT persist between Livewire updates. In general, you should avoid using them for storing state. Installation. To get started, we will create a new Laravel project and then install the Vue router NPM package: 1 laravel new vue-router. 2 cd vue-router. 3. 4 # Link the project if you use Valet. 5 valet link. 6. 7 # Install NPM dependencies and add vue-router.This same process can be repeated for the --method and --path options: 1 # Filter the route list by URI. 2 php artisan route:list --path=account. 3. 4 # Filter the route list by method. 5 php artisan route:list --method=GET. The filters can be combined; results will be aggregated using "and" logic. The following command:- Laravel - Vuejs 2018-09-13; Laravel 5.2 中模型 [App\Project] 没有查询结果如何解决 2017-08-19; 模型没有查询结果,Laravel 2020-04-03; Laravel 5.4:队列作业因"Illuminate\Database\Eloquent\ModelNotFoundException"而失败,消息"No query results for model 2018-01-30; 模型 [App\Models\Match] 没有查询结果 ...Laravel akhirnya merilis versi terbarunya, Laravel 9. Versi anyar framework ini membawa banyak fitur menarik! Baca selengkapnya di sini! The post Laravel 9 Akhirnya Rilis, Apa Saja Fitur Barunya? appeared first on Niagahoster Blog.Breeze seems to be Tailwind-based, but the majority of developers don't use Tailwind. Searching the documentation for scaffolding brings up this page for Laravel 6, and clicking the link to go to a Laravel 8 equivalent takes you to the generic Installation page, which is worrying to say the least. 1.Now, let's get to Laravel Socialite and Google Sign In implementation. Step 1. Preparation: Fresh Project. We will start with totally fresh Laravel 5.7 project. After installation, we launch this command to generate login/register views: php artisan make:auth. Step 2. DB Changes in Users Table.我正在 Laravel 之上構建 API。 我想通過使用Throttle中間件來使用內置的速率限制功能。 問題是,當油門中間件觸發時,響應是: 我的 API 使用 JSON 格式的錯誤負載,如下所示: 讓Throttle中間件以我需要的方式返回輸出的最佳方法是什么Routes defined in the routes/api.php file are nested within a route group by the RouteServiceProvider. Within this group, the /api URI prefix is automatically applied so you do not need to manually apply it to every route in the file. You may modify the prefix and other route group options by modifying your RouteServiceProvider class. Laravel 5.5.5 introduced a new feature in routing, called Route::fallback (). Basically, if no route is matched, then fallback function is a way to override default 404 page and introduce additional logic. Here's how it works. In your routes/web.php file, at the very end, after all the routes, you can specify something like this:Hello, when I try to access my test app, just the index route works:malte.italoborg.es If I try to access another route, like:malte.italoborg.es/admin …Categories Jasa pembuatan website. Yudith Hentreisa. March 31, 2022. Promo Jasa Aplikasi Laravel April 2022 - Dibulan ini, kami, dari Sundakreatif.com, akan menawarkan promo potongan harga yang menarik bagi anda yang akan membuat website. Anda akan mendapatkan diskon untuk membuat website Laravel sebesar 10% untuk setiap pembuatan aplikasi baru.URL Route Name; GET /posts: posts.index: POST /posts: posts.create: GET /posts/{record} posts.read: PATCH /posts/{record} posts.update: DELETE /posts/{record} posts ...- Laravel - Vuejs 2018-09-13; Laravel 5.2 中模型 [App\Project] 没有查询结果如何解决 2017-08-19; 模型没有查询结果,Laravel 2020-04-03; Laravel 5.4:队列作业因"Illuminate\Database\Eloquent\ModelNotFoundException"而失败,消息"No query results for model 2018-01-30; 模型 [App\Models\Match] 没有查询结果 ...Jan 22, 2019 · One is a Laravel (PHP) application and an Angular application (Front-end) running. I have noticed that last week, all the backend application (PHP) routes started throwing 404 Not Found errors. I restarted my nginx, still it was coming. Finally I restarted my aws instance and it started working fine. First have a look that how invoke method works. Route::get('/ {pages}','TestController'); Have a look this above code that there is no method. That mean it is a invokable controller. If there is no method in controller then the controller will call a method called invoke. Something like that.Create a Resource Controller. To create a Resource controller in laravel 9 app by the following command: 1. php artisan make:controller CRUDController --resource. The above command will create a resource controller file inside app/http/controllers directory. When you open it, you will look like:The first one is the OpenAPI HttpFoundation Testing package mentioned earlier, that we instal as a development dependency as it's intended to be used as part of our test suite.. The second one is L5 Swagger, a popular package bringing Swagger PHP and Swagger UI to Laravel. We actually don't need Swagger PHP here, as it uses Doctrine annotations to generate OpenAPI definitions and we're going ...In this article, we learned how to install Composer, Laravel, Docker, and how we can leverage containers to create our Laravel API. We used Docker Compose to create a Laravel application and MySQL service, we can now save our data to a database and have it persist. We created Photo Controller that lets us build powerful yet simple APIs in Laravel.21. 22. 23. Specify a default route prefix and middleware in the package's config.php file: 'prefix' => 'blogger', 'middleware' => ['web'], // you probably want to include 'web' here. 1. 2. In the above default configuration, all routes defined in routes.web need to be prefixed with /blogger. In this way, collision with potentially existing ...Here are the instructions going toward building an uncomplicated, secure restful api in the laravel 8 app. Step 1: Create Laravel Project. Step 2: Add Database Details. Step 3: Install Laravel Sanctum Pacakage. Step 4: Setting Up Sanctum. Step 5: Update Model and Run Migration. Step 6: Build API Resources.Automatically turn any Laravel application multi-tenant — no code changes needed. stancl/tenancy automatically switches database connections and all other things in the background, letting you leverage standard Laravel code into a full SaaS application. Most features out of all multi-tenancy packages. ... You may do the same for the api route ...Stack Exchange Network. Stack Exchange network consists of 180 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.. Visit Stack Exchange82) Explain API.PHP route. Its routes correspond to an API cluster. It has API middleware which is enabled by default in Laravel. These routes do not have any state and cross-request memory or have no sessions. 83) What is named route? Name route is a method generating routing path. 10l_2ttl