Skip to content

Commit

Permalink
Require rapidez/blade-directives and demo serve script
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Oct 2, 2024
1 parent 87a2063 commit e826223
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"require": {
"php": "^8.1|^8.2",
"blade-ui-kit/blade-heroicons": "^2.4",
"gehrisandro/tailwind-merge-laravel": "^1.2"
"gehrisandro/tailwind-merge-laravel": "^1.2",
"rapidez/blade-directives": "^0.6.0"
},
"require-dev": {
"orchestra/workbench": "^9.6"
Expand All @@ -40,6 +41,7 @@
}
},
"scripts": {
"preview-demo": "@php vendor/bin/testbench serve --ansi",
"generate-demo": "@php vendor/bin/testbench generate-demo --ansi"
}
}
1 change: 1 addition & 0 deletions workbench/bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@

return Application::configure(basePath: $APP_BASE_PATH ?? default_skeleton_path())
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
)->create();
5 changes: 5 additions & 0 deletions workbench/bootstrap/providers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
Rapidez\BladeDirectives\BladeDirectivesServiceProvider::class,
];
6 changes: 6 additions & 0 deletions workbench/routes/web.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

use Illuminate\Support\Facades\Route;

config(['cache.default' => 'array']);
Route::view('/', 'rapidez::components-preview');

0 comments on commit e826223

Please sign in to comment.