mafuth/laravel-addons

来自我旧框架的简单插件

v0.1 2022-06-30 10:08 UTC

This package is auto-updated.

Last update: 2024-09-29 06:25:54 UTC


README

来自我旧框架的简单插件

如何安装

composer require mafuth/laravel-addons

如何使用

  <?php
  use Mafuth\LaravelAddons\html;

  include('vendor/autoload.php');

  $html = new html();
  echo $html->minify("Your html goes here");
  echo $html->encode("Your html goes here");
  <?php

  namespace App\Http\Controllers;

  use Illuminate\Http\Request;
  use Mafuth\LaravelAddons\html;

  class testController extends Controller
  {
      public function index(){
          $html = new html();
          return $html->minify(view('index'));
      }
  }