Installation
- Requirements
- Install the package
- Publish optional assets
- Create your first presentation
- Register a route
Requirements
SlideWire currently requires the same core stack validated by the package itself:
- PHP
^8.4 - Laravel
^12.0 - Livewire
^4.0
Code highlighting is powered by phiki/phiki, which is installed automatically as a package dependency.
Install the package
composer require wendelladriel/slidewire
SlideWire registers its service provider automatically, so no manual provider registration is needed.
Publish optional assets
You may publish the package assets if you want to customize them.
php artisan vendor:publish --tag=slidewire-config
php artisan vendor:publish --tag=slidewire-views
php artisan vendor:publish --tag=slidewire-stubs
This publishes:
config/slidewire.phpresources/views/vendor/slidewirestubs/slidewire
If frontend changes are not reflected in the browser, make sure your app assets are running with npm run dev or have been built with npm run build.
Create your first presentation
Use the scaffold command to generate a presentation file:
php artisan make:slidewire demo/hello --title="Hello SlideWire"
By default, the file is created at:
resources/views/pages/slides/demo/hello.blade.php
The generated scaffold is a Livewire single-file component that already includes a deck, slides, and a fragment so you can start editing immediately.
Register a route
Register the presentation with the route macro provided by SlideWire:
use Illuminate\Support\Facades\Route;
Route::slidewire('/slides/hello', 'demo/hello');
Then open /slides/hello in your browser.
From there, you may continue with the quickstart or jump to the presentation workflow.