Monday, March 13, 2017

Laravel 5.4 named route usage with route parameter

I have an upragate laravel 5.2 to 5.4 and my named routes not working.

that web routes for example

 Route::get('tempURL2/get/{filename}', [
    'as' => 'getentry', 'uses' => 'temaYukle@get']);

getting route name and show parameters in blade

<a href="/"></a>

html result :

<a href="http://someSite.com/tempURL2/get/phpd089B0.zip">downloads.zip</a>

this request http headers:

Request URL:http://localhost:8521/tempURL2/get/phpCDA4.tmp.zip

Request Method:GET

Status Code:404 Not

Found Remote Address:[::1]:8521



via Qh0stM4N

Advertisement