PHPackages                             rjvandoesburg/laravel-nova-url-rewrite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rjvandoesburg/laravel-nova-url-rewrite

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rjvandoesburg/laravel-nova-url-rewrite
======================================

Add rewrites to your Nova powered application

1.0.0(6y ago)521MITPHPPHP ^7.2CI failing

Since Nov 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/rjvandoesburg/laravel-nova-url-rewrite)[ Packagist](https://packagist.org/packages/rjvandoesburg/laravel-nova-url-rewrite)[ RSS](/packages/rjvandoesburg-laravel-nova-url-rewrite/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (1)

Add Url Rewrites to your Laravel Nova powered application
=========================================================

[](#add-url-rewrites-to-your-laravel-nova-powered-application)

Easy to use Url rewrite package. Allowing you to have pretty urls for your Laravel Nova powered application.

Requirements
------------

[](#requirements)

This package requires Laravel 5.8 or higher, PHP 7.2 or higher.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require rjvandoesburg/laravel-nova-url-rewrite
```

The package will automatically register itself.

### RewriteController

[](#rewritecontroller)

Add the following to your routes files to add the RewriteController to your application.

```
Route::NovaUrlRewrite()
```

This will register the following route: `{request_path}` =&gt; `Rjvandoesburg\NovaUrlRewrite\Http\Controllers\UrlRewriteController` with your application. It is recommended to put this as low as possible because it is a `catch_all` route!

### Publish

[](#publish)

The package comes with some configuration, translations and with a migration available for publishing.

```
php artisan vendor:publish --provider="Rjvandoesburg\NovaUrlRewrite\NovaUrlRewriteServiceProvider" --tag="nova-url-rewrite-config"
php artisan vendor:publish --provider="Rjvandoesburg\NovaUrlRewrite\NovaUrlRewriteServiceProvider" --tag="nova-url-rewrite-migrations"
php artisan vendor:publish --provider="Rjvandoesburg\NovaUrlRewrite\NovaUrlRewriteServiceProvider" --tag="nova-url-rewrite-translations"
```

If you've published the migrations don't forget to run `php artisan migrate`! Running the migrations will add a table `url_rewrites`, however the name of this table is configurable in the `url_rewrite.php` config file.

The contents of the config file are as followed:

```
