PHP code example of riverskies / laravel-vue-component

1. Go to this page and download the library: Download riverskies/laravel-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/ */

    

riverskies / laravel-vue-component example snippets


Riverskies\Laravel\VueComponent\VueComponentServiceProvider::class,

return view('pages.home', ['component' => 'homepage']);

return view('pages.contact', ['component' => 'contact']);

// in your controller method
return view('welcome', [
    'component' => [
        'is' => 'contact',
        'data' => [
            'email' => '[email protected]'
        ]
    ]
]);