PHP Classes

File: tests/templates/Test2/auth.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   tests/templates/Test2/auth.blade.php   Download  
File: tests/templates/Test2/auth.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change:
Date: 1 year ago
Size: 1,112 bytes
 

Contents

Class file image Download
Title:{!! $title !!}.
Current user: @user
@auth('admin')
account is adminstrator.
@elseauth('user')
account is user.
@elseauth()
account is not administrator neither user.
@endauth
@can('edit','noallowed')
The user can edit!.
@elsecan('view')
The user can edit but he can view.
@elsecan()
The user cant edit neither view.
@endcan()
@cannot('edit','noallowed')
The user is not allowed to edit the element not allowed.
@elsecannot('delete')
The user is not allowed to edit the element not allowed, but delete.
@elsecannot()
The user is allowed to edit.
@endcannot()
@cannot('edit')
The user is not allowed to edit.
@elsecannot('delete')
The user is allowed to edit but delete.
@elsecannot()
The user is allowed to edit.
@endcannot()
@can('edit')
The user can edit.
@elsecan()
The user cant edit.
@endcan()
@canany(['edit','add'])
The user can edit or add.
@elsecan
The user cant edit or add.
@endcanany()
@guest()
User is anonymous.
@elseguest('admin')
User is not anonymous and is not admin.
@elseguest()
User is not anonymous.
@endguest()
@auth()
User is not anonymous.
@elseauth()
User is anonymous.
@endauth()