PHP Classes

File: server/config/fractal.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/config/fractal.php   Download  
File: server/config/fractal.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Wallet API and Application
Application to manage a wallet by calling an API
Author: By
Last change:
Date: 2 years ago
Size: 1,327 bytes
 

Contents

Class file image Download
<?php

return [
   
/*
     * The default serializer to be used when performing a transformation. It
     * may be left empty to use Fractal's default one. This can either be a
     * string or a League\Fractal\Serializer\SerializerAbstract subclass.
     */
   
'default_serializer' => '',

   
/* The default paginator to be used when performing a transformation. It
     * may be left empty to use Fractal's default one. This can either be a
     * string or a League\Fractal\Paginator\PaginatorInterface subclass.
     */
   
'default_paginator' => '',

   
/*
     * League\Fractal\Serializer\JsonApiSerializer will use this value
     * as a prefix for generated links. Set to `null` to disable this.
     */
   
'base_url' => null,

   
/*
     * If you wish to override or extend the default Spatie\Fractal\Fractal
     * instance provide the name of the class you want to use.
     */
   
'fractal_class' => Spatie\Fractal\Fractal::class,

   
'auto_includes' => [

       
/*
         * If enabled Fractal will automatically add the includes who's
         * names are present in the `include` request parameter.
         */
       
'enabled' => true,

       
/*
         * The name of key in the request to where we should look for the includes to include.
         */
       
'request_key' => 'include',
    ],
];