PHP code example of pkboom / laravel-inertia-vue-component
1. Go to this page and download the library: Download pkboom/laravel-inertia-vue-component library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pkboom / laravel-inertia-vue-component example snippets
// SomeController.php
public function index() {
return Inertia::render('Some/Index', [
'foo' => 'foo',
'bar' => 'bar',
]);
}
// SomeController.php
public function index() {
return Inertia::render('Some/Index', [
'foo' => 'foo',
'bar' => 'bar',
'new' => 'new',
]);
}