You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony has implementation for that, but was never really used in Laravel.
What it does is creating a segment in which you can add or delete lines while also having other segments which can be edited independently from each other.
One of the ideas is to be able to clear out prompts when entered information, but we can do so many things with sections. We could do live updating of sections using Laravel Reverb ;-)
An example of what could be done:
section('foo', function(){
// anything in here happens within the sectioninfo('hello');
// .... creating progressbars, requesting information.
})->clear();
info('we are done');
Another example:
info('asking questions:', section: 'foo');
$bar = section('bar');
$name = text('your name?', section: 'bar');
$bar->clear();
$password = password('your password?', section: $bar);
$bar->replace(
function(){
// replaces the entire content. Imagine it does more output.info('Thanks!');
}
)
info('done asking questions.', section: 'foo');
The text was updated successfully, but these errors were encountered:
After tinkering with Prompts a bit, I don't think sections are really needed for the watch method after all, They can be separated Feature Requests. I will PR the watch prompt somewhere this weekend.
I would love to see some support on sections.
Symfony has implementation for that, but was never really used in Laravel.
What it does is creating a segment in which you can add or delete lines while also having other segments which can be edited independently from each other.
One of the ideas is to be able to clear out prompts when entered information, but we can do so many things with sections. We could do live updating of sections using Laravel Reverb ;-)
An example of what could be done:
Another example:
The text was updated successfully, but these errors were encountered: