定制 sbx/frontcrm 二次开发

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

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

sbx/frontcrm

Composer 安装命令:

composer require sbx/frontcrm

包简介

This package allow you to edit your static pages from frontend.

README 文档

README

This package allow you to edit your static text and images from frontend.

Installation

To install the package

  composer require sbx/frontcrm

Add Sbx\Frontcrm\Providers\CRMServiceProvider::class in your project app/config.php under providers array.

Run

  php artisan migrate:refresh --path=vendor/sbx/frontcrm/src/database/migrations/2023_09_28_174935_create_sbx_settings_table.php

Configuration

Add @include('frontcrm::editor', ['editable'=> true]) in your view page before </body> tag see example below.

<html>
<head>
    ...
</head>
<body>
    ...
    My content
    ...
    My scripts
    ...
    @if(Auth::check())
      @include('frontcrm::editor', ['editable'=> true])
    @else
      @include('frontcrm::editor', ['editable'=> false])
    @endif
</body>
</html>

you can define who will edit and who can only see the changes by define editable key true or false.

and Add sbx-inline-editor class in your editable text elements.

Add sbx-inline-img-editor class in your editable img tags.

See example below:

<html>
<head>
    ...
</head>
<body>
    <div class="section1">  
      
      <h1 class="sbx-inline-editor">This is the H1 Editable Tag.</h1>

      <img src="your image link" class="sbx-inline-img-editor" />

    <div>

    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>

    @if(Auth::check())
      @include('frontcrm::editor', ['editable'=> true])
    @else
      @include('frontcrm::editor', ['editable'=> false])
    @endif

</body>
</html>

Note:

JQuery is required.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固