samedi 23 février 2019

Laravel Pagination Pretty Urls

Im using laravels default pagination but it prepends ?page=12 onto the url I have changed the url variable from page to ?resource=12 now im trying to figure out how to work this all into creating pretty urls - first stop is obviously nginx but im wondering if anyone out there knows of a native way to do this within laravel and if not can someone help with with the nginx rewrite - so far ive got this which covers the usual laravel serving of pages

    location / {
        index index.php;
        try_files $uri @rewriteapp;
    }

    location @rewriteapp {
        rewrite ^(.*)$ /index.php/$1 last;
    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire