Category : url-routing

I’ve researched a lot. Only the thing I’ve found is the question based on regexp resolving. Dynamic Routing in Laravel 5 Application But, I need routing based on my custom logic and to achieve something like this: Route::get( ‘{slug}’, [ ‘uses’ => ‘[email protected]’, ] )->where( ‘slug’, function ( $slug ) { $isCorrect = $slug === ..

Read more

I have changed my eCommerce site but facing few SEO issues with products and category URL http://mart.samishleather.com/product-categories/slug/slug I need to change the only "product-categories" externally fro SEO reason so its need to be changed to http://mart.samishleather.com/category/slug/slug i have tried <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(.*)product-categories(.*)$ /$1category$2 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ..

Read more

I’m building an API to support an external application. I have added several routes to it with no problem, but suddenly, when I add a new route (acars/delay), I get a 404 error when trying to hit http://myurl.dev/api/acars/delay with a POST request. Here is my api.php file: Route::post(‘acars/deactivate’, ‘[email protected]’); Route::post(‘acars/ofp’, ‘[email protected]’); Route::post(‘acars/create’, ‘[email protected]’); Route::post(‘acars/pirep’, ‘[email protected]’); ..

Read more

Related to: Fleet cart using middlewares in routes but i can not find any $routemiddleware in project…not even in kernel.php …where can i find it? I have an installation of Laravel 5.7 using FleetCart module on my website. Fleetcart is already handling some (or all? not sure) endpoints; in addition to that I want to ..

Read more