inertia-laravel

The Laravel adapter for Inertia.js.

MIT License

Downloads
21.7M
Stars
1.9K
Committers
49

Bot releases are hidden (Show)

inertia-laravel - v1.0.0 Latest Release

Published by jessarcher 7 months ago

  • Add Laravel 11 support (#560, #564)
  • Fix URL generation (#592)
  • Remove deprecated Assert class and Laravel 6 & 7 support. (#594)
inertia-laravel - v0.6.11

Published by reinink 12 months ago

  • Add option for using the bun runtime in SSR (#552)
inertia-laravel - v0.6.10

Published by jessarcher about 1 year ago

  • Add inertia_location helper function (#491)
  • Add Route::inertia() IDE helper (#413)
  • Automatically update Facade docblocks (#538)
  • Restore request and session on redirects (#539)
  • Add PHP 8.3 support (#540)
inertia-laravel - v0.6.9

Published by reinink almost 2 years ago

  • Conditionally use pcntl extension in inertia:start-ssr command (#492)
inertia-laravel - v0.6.8

Published by reinink almost 2 years ago

  • Reintroduce inertia.ssr.enabled config option (#488)
  • Fix bug where SSR is dispatched twice when errors exist (#489)
inertia-laravel - v0.6.7

Published by reinink almost 2 years ago

  • Report SSR errors (#486)
  • Auto enable SSR based on existence of SSR bundle (#487)
inertia-laravel - v0.6.6

Published by reinink almost 2 years ago

  • Add inertia:start-ssr and inertia:stop-ssr artisan commands (#483)
inertia-laravel - v0.6.5

Published by reinink almost 2 years ago

inertia-laravel - v0.6.4

Published by reinink almost 2 years ago

  • Add PHP 8.2 support (#463)
inertia-laravel - v0.6.3

Published by reinink over 2 years ago

  • Check Vite manifest path (build/manifest.json) when determining the current asset version (#399)
inertia-laravel - v0.6.2

Published by reinink over 2 years ago

  • Switch to using the Vary: X-Inertia header (#404)
  • Fix bug with incompatible $request->header() method (#404)
inertia-laravel - v0.6.1

Published by reinink over 2 years ago

  • Set Vary: Accept header for all responses (#398)
  • Only register Blade directives when actually needed (#395)
inertia-laravel - v0.6.0

Published by reinink over 2 years ago

Automatic redirects

Since returning a Redirect::back() response is such a common pattern within an Inertia app, this adapter now does this automatically for you when no response is returned from a controller (#350).

For example, consider this teams controller which redirects back to the previous page after updating a team. With this new feature you can now omit the Redirect::back() response and it will happen automatically.

class TeamsController extends Controller
{
    public function update(Team $team)
    {
        $team->update(/* ... */);
-
-       return Redirect::back();
    }
}

You can disable this behavior, or even do something entirely different, by adding an onEmptyResponse method to your HandleInertiaRequests middleware:

use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;

/**
 * Determines what to do when an Inertia action returned with no response.
 * By default, we'll redirect the user back to where they came from.
 *
 * @param  Request  $request
 * @param  Response  $response
 * @return Response
 */
public function onEmptyResponse(Request $request, Response $response): Response
{
    // Use the default Laravel "empty" response
    return $response;
}

Fixed

  • Fixed namespace issue with Route::inertia() method (#368)
  • Added session check when sharing validation errors (#380)
  • Fixed docblock on facade render method (#387)
inertia-laravel - v0.5.4

Published by claudiodekker over 2 years ago

Find release notes here.

inertia-laravel - v0.5.3

Published by claudiodekker almost 3 years ago

Find release notes here.

inertia-laravel - v0.5.2

Published by claudiodekker almost 3 years ago

Find release notes here.

inertia-laravel - v0.5.1

Published by claudiodekker almost 3 years ago

Find release notes here.

inertia-laravel - v0.5.0

Published by claudiodekker almost 3 years ago

Find release notes here.

inertia-laravel - v0.4.5

Published by claudiodekker almost 3 years ago

Find release notes here.

inertia-laravel - v0.4.4

Published by reinink about 3 years ago

Find release notes here.