jeffersonpereira / realestatelaravel

这是一个用于在Laravel系统中管理房地产的包

1.6.1 2024-10-02 02:38 UTC

README

Total Downloads Latest Stable Version License

描述

用于管理房地产/中介网站的包,使用Laravel框架构建

安装

composer require jeffersonpereira/realestatelaravel

安装包后,需要运行命令以发布配置文件。

php artisan realestatelaravel:install

注意

我们强烈建议使用环境变量,因为当执行安装命令时,配置文件将被覆盖。

该包包含迁移,您需要运行

php artisan migrate

重要说明

当使用您的模板时,使用blade指令和cdn导入font-awesome资产。

注意:我们在资产中使用 bootstrap 5.1

<html>
  <head>
    ...
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
      integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
      crossorigin="anonymous"
      referrerpolicy="no-referrer"
    />
    @realestatelaravelStyles
  </head>
  <body>
    ...
    <!-- in finishing body -->
    @realestatelaravelScripts
  </body>
</html>

包中提供的功能

房产

该包处于开发中,并将随时间添加新功能。目前该包已具备房产的所有管理功能。

视图路由

使用 Menu::class 类获取所有视图路由以开始使用,当使用您的模板时。

use Jeffpereira\RealEstate\Utilities\Helpers\RouteHelper;

$routes = RouteHelper::allView();

配置

在您的 .env 中定义配置

/**
*  Defines whether to use the package `template`
*  -   When set to false, you will need to define a `template` and
*      section_content for the content.
*  .env >> RE_USE_TEMPLATE
*/
'use_template' => true
/**
*  The name of the `template` used to extend the package view - .env >> RE_TEMPLATE
*/
'template' => 'template',
/**
*  Template content section name - .env >> RE_SECTION_CONTENT
*/
'section_content' => 'content',

更多选项,请查看 config/realestatelaravel.php 配置文件

事件

  • Jeffpereira\RealEstate\Events\BusinessPropertyFinalizedEvent - 当房产业务最终确定时

许可证

Real Estate Laravel 是一个开源项目,由 MIT 许可。