PHP Class App\Http\Controllers\Laralum\Laralum

The main Laralum class contains diferent elements to help you develop faster
Inheritance: extends App\Http\Controllers\Controller
Afficher le fichier Open project: ConsoleTVs/Laralum Class Usage Examples

Méthodes publiques

Méthode Description
addDownload ( $file_name )
allowEditingField ( )
apiData ( )
avatarsLocation ( )
barChart ( $title, $element_label, $labels, $data, $colors = null )
blog ( $type, $data )
blogs ( $type = null, $data = null )
checkDocumentOwner ( $type, $data )
checkInstalled ( )
checkValueInRelation ( $data, $value, $value_index )
comment ( $type, $data )
comments ( $type = null, $data = null )
countries ( )
countryCodeField ( )
currentURL ( )
dataPath ( )
defaultAvatar ( ) : url Returns the default avatar URL
defaultRole ( )
deleteFile ( $file_name )
document ( $type, $data )
documents ( $type = null, $data = null )
downloadFile ( $file_name )
downloadLink ( $file_name )
dropdown ( $slug, $array = null )
fancyDate ( string $date_string ) : date Formats a string date into a fancy, human readable date
fileExtension ( $file_name )
files ( )
geoChart ( $title, $element_label, $data )
getCountryCode ( $ip )
getIP ( )
imageFormats ( )
includeAssets ( $name )
isAdmin ( $user )
isDocument ( $file_name )
isFile ( $file_name )
laralumLogo ( )
lineChart ( $title, $element_label, $labels, $data, $color = null )
locales ( )
loggedInUser ( )
mustBeAdmin ( $user )
mustBeFile ( $file_name )
mustHaveBlog ( $blog_id )
mustNotBeAdmin ( $user )
mustOwnBlog ( $blog_id )
newBlog ( )
newComment ( )
newDocument ( )
newPermission ( )
newPost ( )
newPostView ( )
newRole ( )
newSocial ( )
newUser ( )
noFlags ( )
permission ( $type, $data )
permissionDescription ( $slug )
permissionName ( $slug )
permissionToAccess ( $slug )
permissions ( $type = null, $data = null )
pieChart ( $title, $labels, $data, $colors = null )
post ( $type, $data )
postView ( $type, $data )
postViews ( $type = null, $data = null )
posts ( $type = null, $data = null )
previousURL ( )
publicPath ( )
randomColor ( )
randomString ( $length = 10 )
rettype ( $mixed, $type = NULL )
role ( $type, $data )
roles ( $type = null, $data = null )
scanFiles ( $directory )
settings ( )
social ( $type, $data )
socials ( $type = null, $data = null )
user ( $type, $data )
userSettings ( )
users ( $type = null, $data = null )
version ( )
websiteTitle ( )
widget ( $name )

Method Details

addDownload() public static méthode

public static addDownload ( $file_name )

allowEditingField() public static méthode

public static allowEditingField ( )

apiData() public static méthode

public static apiData ( )

avatarsLocation() public static méthode

public static avatarsLocation ( )

barChart() public static méthode

public static barChart ( $title, $element_label, $labels, $data, $colors = null )

blog() public static méthode

public static blog ( $type, $data )

blogs() public static méthode

public static blogs ( $type = null, $data = null )

checkDocumentOwner() public static méthode

public static checkDocumentOwner ( $type, $data )

checkInstalled() public static méthode

public static checkInstalled ( )

checkValueInRelation() public static méthode

public static checkValueInRelation ( $data, $value, $value_index )

comment() public static méthode

public static comment ( $type, $data )

comments() public static méthode

public static comments ( $type = null, $data = null )

countries() public static méthode

public static countries ( )

countryCodeField() public static méthode

public static countryCodeField ( )

currentURL() public static méthode

public static currentURL ( )

dataPath() public static méthode

public static dataPath ( )

defaultAvatar() public static méthode

When using this function it will return the default avatar URL
public static defaultAvatar ( ) : url
Résultat url

defaultRole() public static méthode

public static defaultRole ( )

deleteFile() public static méthode

public static deleteFile ( $file_name )

document() public static méthode

public static document ( $type, $data )

documents() public static méthode

public static documents ( $type = null, $data = null )

downloadFile() public static méthode

public static downloadFile ( $file_name )

dropdown() public static méthode

public static dropdown ( $slug, $array = null )

fancyDate() public static méthode

Returns a date formatted for human readable
public static fancyDate ( string $date_string ) : date
$date_string string The date in string format
Résultat date

fileExtension() public static méthode

public static fileExtension ( $file_name )

files() public static méthode

public static files ( )

geoChart() public static méthode

public static geoChart ( $title, $element_label, $data )

getCountryCode() public static méthode

public static getCountryCode ( $ip )

getIP() public static méthode

public static getIP ( )

imageFormats() public static méthode

public static imageFormats ( )

includeAssets() public static méthode

public static includeAssets ( $name )

isAdmin() public static méthode

public static isAdmin ( $user )

isDocument() public static méthode

public static isDocument ( $file_name )

isFile() public static méthode

public static isFile ( $file_name )

lineChart() public static méthode

public static lineChart ( $title, $element_label, $labels, $data, $color = null )

locales() public static méthode

public static locales ( )

loggedInUser() public static méthode

public static loggedInUser ( )

mustBeAdmin() public static méthode

public static mustBeAdmin ( $user )

mustBeFile() public static méthode

public static mustBeFile ( $file_name )

mustHaveBlog() public static méthode

public static mustHaveBlog ( $blog_id )

mustNotBeAdmin() public static méthode

public static mustNotBeAdmin ( $user )

mustOwnBlog() public static méthode

public static mustOwnBlog ( $blog_id )

newBlog() public static méthode

public static newBlog ( )

newComment() public static méthode

public static newComment ( )

newDocument() public static méthode

public static newDocument ( )

newPermission() public static méthode

public static newPermission ( )

newPost() public static méthode

public static newPost ( )

newPostView() public static méthode

public static newPostView ( )

newRole() public static méthode

public static newRole ( )

newSocial() public static méthode

public static newSocial ( )

newUser() public static méthode

public static newUser ( )

noFlags() public static méthode

public static noFlags ( )

permission() public static méthode

public static permission ( $type, $data )

permissionDescription() public static méthode

public static permissionDescription ( $slug )

permissionName() public static méthode

public static permissionName ( $slug )

permissionToAccess() public static méthode

public static permissionToAccess ( $slug )

permissions() public static méthode

public static permissions ( $type = null, $data = null )

pieChart() public static méthode

public static pieChart ( $title, $labels, $data, $colors = null )

post() public static méthode

public static post ( $type, $data )

postView() public static méthode

public static postView ( $type, $data )

postViews() public static méthode

public static postViews ( $type = null, $data = null )

posts() public static méthode

public static posts ( $type = null, $data = null )

previousURL() public static méthode

public static previousURL ( )

publicPath() public static méthode

public static publicPath ( )

randomColor() public static méthode

public static randomColor ( )

randomString() public static méthode

public static randomString ( $length = 10 )

rettype() public static méthode

public static rettype ( $mixed, $type = NULL )

role() public static méthode

public static role ( $type, $data )

roles() public static méthode

public static roles ( $type = null, $data = null )

scanFiles() public static méthode

public static scanFiles ( $directory )

settings() public static méthode

public static settings ( )

social() public static méthode

public static social ( $type, $data )

socials() public static méthode

public static socials ( $type = null, $data = null )

user() public static méthode

public static user ( $type, $data )

userSettings() public static méthode

public static userSettings ( )

users() public static méthode

public static users ( $type = null, $data = null )

version() public static méthode

public static version ( )

websiteTitle() public static méthode

public static websiteTitle ( )

widget() public static méthode

public static widget ( $name )