The essential news about content management systems and mobile technology. Powered by Perfect Publisher and XT Search for Algolia.
The News Site publishes posts to the following channels: Facebook, Instagram, Twitter, Telegram, Web Push, Tumblr, and Blogger.
Laragenie is an AI chatbot with an Artisan console integration for your Laravel applications. It can understand your source code by indexing directory/file paths. You can then ask questions about your code such as "Describe all the model associations for the App\Models\Post model".
Here's an example of how you can configure the indexes in your configuration file. It works by indexing your configured files with an AI model using OpenAI to generate responses and Pinecone to index data:
// config/laragenie.php
return [
// ...
'indexes' => [
'directories' => ['App/Models', 'App/Http/Controllers'],
'files' => ['tests/Feature/MyTest.php'],
'removal' => [
'strict' => true,
],
],
];
Once you’ve installed this package, you can index your files,
clear the index, and ask questions by running the
laragenie
command:
Note that the files you index and ask questions about needn’t be only PHP files! You can also index and ask questions about your JavaScript, GitHub workflows, etc. The neat thing about this CLI is that it’s not generic answers; it’s specifically helpful to answer questions about your unique codebases.
Using AI models is a valuable way to speed up tedious tasks. It can be helpful in onboarding developers new to a project and getting general knowledge about an unfamiliar codebase more rapidly.
This package is available on Github at joshembling/laragenie and installable via composer:
composer require --dev joshembling/laragenie
The post Ask AI Questions About Your Codebase from the CLI With Laragenie appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/laragenie
Read more https://build.prestashop-project.org/news/2024/live-update-february-2024/
Read more https://www.extly.com/blog/22-latest-news/800-february-updates.html
As part of the release of Laravel
11, new applications include a health /up
endpoint. This route is defined in the new
bootstrap/app.php
file by passing the health
parameter—which is defined by default in the Laravel 11
skeleton:
Application::configure(basePath: dirname(__DIR__))
->withProviders()
->withRouting(
web: __DIR__.'/../routes/web.php',
// api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
// channels: __DIR__.'/../routes/channels.php',
health: '/up', // [tl! add]
)
// ...
When setting up the application routing, the Laravel framework
defines the health route and also emits a
DiagnosingHealth
event:
use Illuminate\Foundation\Events\DiagnosingHealth;
// ...
if (is_string($health)) {
Route::middleware('web')->get($health, function () {
Event::dispatch(new DiagnosingHealth);
return View::file(__DIR__.'/../resources/health-up.blade.php');
});
}
The route is configurable with the default /up
endpoint and returns an animated “Application up” health page in
the browser:
The post New Laravel 11 Apps Include a Health Check Endpoint appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/laravel-11-health-endpoint
Herd 1.4.0 is now released, and this update adds new features, improves existing ones, and comes with an optional Herd Pro. Another huge announcement is a brand new Herd for Windows that is due out in March of 2024.
In this post let's look at the highlights of this new version and check the video above to go through all these and see Herd Pro in action.
Added the possibility to install and use NVM (Node Version Manager) within Herd to manage your Node environments quickly
To go along with all the features of the basic version, Herd pro now includes the following:
Intercept dump
and dd
calls and
display them in an external window.
Use the internal mail server and client to test and debug local emails.
Trail and search through local log files of all your projects.
Automatically enable Xdebug when setting a breakpoint in PHPStorm or enabling the debug mode via a browser extension.
You can find out more about Herd and download it from herd.laravel.com.
The post Herd 1.4.0 is now out with a pro version and Windows in the works appeared first on Laravel News.
Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.
Read more https://laravel-news.com/herd-pro
Page 26 of 1311