定制 spizian/wizardtube 二次开发

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

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

spizian/wizardtube

最新稳定版本:1.5

Composer 安装命令:

composer require spizian/wizardtube

包简介

Wizard installation for laravel application

README 文档

README

  • php 8.2
  • require Laravel 10

Installation

composer require spizian/wizardtube

Code style will be automatically fixed by php-cs-fixer.

To secure the code so that it can only be accessed in certain domains, create a middleware class. Example "CheckDomain"

php artisan make:middleware CheckDomain

then create a handle function

public function handle(Request $request, Closure $next): Response
{
    if ($request->getHttpHost() != env('DOMAIN_SITE')) {
        return response('Create message here'); // Change respond with what you want.
    }
    return $next($request);
}

Import in route and and create a middleware group for CheckDomain.

use App\Http\Middleware\CheckDomain;

Route::middleware(CheckDomain::class)->group(function () {
    // Your routes here
});

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-10