Skip to content

Conversation

jasonmccreary
Copy link
Collaborator

@jasonmccreary jasonmccreary commented Dec 18, 2024

As Blueprint now generates Livewire components, it seemed fitting to introduce at least something for Inertia. This adds a new inertia controller statement to render a page with data.

controllers:
  Event:
    show:
      inertia: example.page with:event

Generates:

use Inertia\Inertia;
use Inertia\Response;

class EventController extends Controller
{
    public function show(Event $event): Response
    {
        return Inertia::render('Event/Show', [
            'event' => $event,
        ]);

    // ...
}

@jasonmccreary jasonmccreary merged commit da8dabd into master Dec 18, 2024
27 checks passed
@jasonmccreary jasonmccreary deleted the inertia-render branch December 18, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant