The Basics

By default, Apysey resources are generated and stored in app/Apysey. It is possible to change this directory in the Apysey configuration file to the value resourcesPath.

It is possible to generate a resource via the command php artisan apysey:resource example

Name

Type

Default value

Required?

model

Model

null

true

name

string

null

true

label

string

Default

false

icon

string

fas fa-info-circle

false

visible

boolean

true

false

direction

['asc', 'desc']

asc

true

orderBy

columnName of entity

null

true

controller

Class extends ResourcesController

null

true

createBtn

boolean

true

false

editBtn

boolean

true

false

deleteBtn

boolean

true

false

disk

Filesystem disk

config('apysey.default_disk')

false

diskVisibility

config('apysey.default_visibility')

false

  • name : Define the name pass in route, the name is the base of permission.

  • model

  • label : Define the text show in the sidebar menu. Can be translate.

  • icon : Define the icon show in the sidebar menu. Icon from FontAwesome : https://fontawesome.io/icons

  • visible : Define if the menu in sidebar must be show. Often disable when you use dynamic VueJS.

  • orderBy : Define the order of the results when displaying the entity

  • direction : Define the display direction

  • controller : Define a Controller to override default method of ResourceController from Apysey. <”Dynamic Controller”>

  • createBtn : Define if bouton create is show

  • editBtn : Define if bouton edit is show

  • deleteBtn : Define if bouton delete is show

  • disk : Define the disk where file will be upload

  • diskVisibility : Define the visibility of the disk

Last updated