PHP code example of fex-team / laravel-fis

1. Go to this page and download the library: Download fex-team/laravel-fis library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fex-team / laravel-fis example snippets


  'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
  
    // ...

    // 添加 FIS 的 Provider
    'Fis\Providers\ResourceProvider',

  ],
  
  

  'aliases' => [

    'App'       => 'Illuminate\Support\Facades\App',
    'Artisan'   => 'Illuminate\Support\Facades\Artisan',

    // ...

    'Fis'       => 'Fis\Facades\Fis',
  ],
  

  /*
  |--------------------------------------------------------------------------
  | View Storage Paths
  |--------------------------------------------------------------------------
  |
  | Most templating systems load templates from disk. Here you may specify
  | an array of paths that should be checked for your views. Of course
  | the usual Laravel view path has already been registered for you.
  |
  */

  'paths' => [
    realpath(base_path('resources/views'))
  ],

  // ...

  // 配置 map.json 读取目录,程序运行前,请先记得用 fis 编译产出到 Laravel 项目目录。 
  'mapPath' => realpath(base_path('resources/map'))