PHP code example of dougkusanagi / laravel-ai-chat
1. Go to this page and download the library: Download dougkusanagi/laravel-ai-chat 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/ */
dougkusanagi / laravel-ai-chat example snippets
// Makes tailwind classes being compiled
->viteTheme('resources/css/app.css')
// Add assets
->assets([
Js::make('ai-chat-js', asset('vendor/ai-chat/js/ai-chat.js')),
])
// Add blade components
->renderHook(
PanelsRenderHook::BODY_END,
function () {
if (auth()->check()) {
return view('vendor.ai-chat.components.ai-floating-chat');
}
}
)