A package for make intro on laravel.
Make intro on laravel with a panel.
Install composer package to your project. with this command
composer require whtht/intro-step
Vendor publishing with this code.
php artisan vendor:publish --force --provider=Whtht\IntroStep\IntroStepServiceProvider
Go to config/intro-step.php
and edit as
// web_middleware => /intro-step-admin page middlewares
// api_middleware => Api middlewares
// user_table => Your user table name
// user_column => Your user relationship column
// user_model => Your user model path
and
php artisan config:cache
php artisan migrate
Append providers
array in config/app.php
\Whtht\IntroStep\IntroStepServiceProvider::class,
Append aliases
array in config/app.php
"IntroStep" => Whtht\IntroStep\Facade\IntroStep::class,
Recache your configs with intro-step configs in your terminal
php artisan config:cache
and go to app/Http/Middlewares/VerifyCsrfToken.php
and add this
protected $except = [
//...
"intro-step-admin/*"
];
Append this @intro_step
blade directive on your layout blade or any blade like this.
Now you ready to go on your http://yourwebsite.com/intro-step-admin
page
Example Edit Page about how this fields must be fill
Change view render function on controller view()
to IntroStep::viewWithIntro()
like this
Go to this step url (/home this example)
and see this steps
This project is licensed under the MIT License.