定制 aelisvaddoriya/web-installer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aelisvaddoriya/web-installer

最新稳定版本:v1.0

Composer 安装命令:

composer require aelisvaddoriya/web-installer

包简介

Laravel Web Installer

README 文档

README

Laravel Web Installer is a Laravel package that allows you to install your application easily, without having to worry about setting up your environment before starting with the installation process.

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Installation

composer require shipu/web-installer

then publish the assets

php artisan vendor:publish --tag=web-installer-assets

Screenshots

Server Requirements

Folder Permissions

Environment

Application Settings

Add New Step

You can add new step in installer. For this you have to create a new class and implement Shipu\WebInstaller\Concerns\StepContract class. Eg:

<?php

namespace Your\Namespace;

use Filament\Forms\Components\Wizard\Step;
use Shipu\WebInstaller\Concerns\StepContract;

class Overview implements StepContract
{
    public static function make(): Step
    {
        return Step::make('overview')
            ->label('Overview')
            ->schema([
             // Add Filament Fields Here
            ]);
    }
}

For Step documentation please visit Filament Forms

Then you have to add this class in config/installer.php Eg:

//...
'steps' => [
    Overview::class, // <-- Add Here
    //...
],
//...

Note: you have to publish config file first. More details in Configuration section.

Protect Routes

Protect other routes if not installed then you can apply the middleware to a route or route-group. Eg:

Route::group(['middleware' => 'redirect.if.not.installed'], function () {
    Route::get('/', function () {
        return view('welcome');
    });
});

In Filament, if you want to protect all admin panel routes then you have to add middleware in panel service provider. Eg:

public function panel(Panel $panel): Panel
{
    return $panel
        ...
        ->middleware([
            \Shipu\WebInstaller\Middleware\RedirectIfNotInstalled::class,
            ...
        ]);
}

Configuration

you can modify almost everything in this package. For this you have to publish the config file. Eg:

php artisan vendor:publish --tag=web-installer-config

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 20
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固