https://github.com/fflch/laravel-fflch-stepper
laravel-fflch-stepper
https://github.com/fflch/laravel-fflch-stepper
hacktoberfest
Last synced: 3 months ago
JSON representation
laravel-fflch-stepper
- Host: GitHub
- URL: https://github.com/fflch/laravel-fflch-stepper
- Owner: fflch
- Created: 2021-05-28T02:13:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-12T17:18:45.000Z (almost 2 years ago)
- Last Synced: 2025-06-09T11:49:24.323Z (about 1 year ago)
- Topics: hacktoberfest
- Language: Blade
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Estilo fflch para laravel-stepper
https://github.com/AXN-Informatique/laravel-stepper
Instalação
composer require fflch/laravel-fflch-stepper
Publicação do arquivo de configuração:
php artisan vendor:publish --provider="Fflch\LaravelFflchStepper\LaravelFflchStepperServiceProvider" --tag="config"
Edite o arquivo config/laravel-fflch-stepper.php conforme suas necessidades.
Injete no controller:
use Fflch\LaravelFflchStepper\Stepper;
public function show(Pedido $pedido, Stepper $stepper)
{
$stepper->setCurrentStepName($pedido->status);
return view('pedidos.show',[
'pedido' => $pedido,
'stepper' => $stepper->render()
]);
}
No blade posicione onde deseja mostrar o stepper:
{!! $stepper !!}