CompilesAuthorizations

trait CompilesAuthorizations (View source)

Methods

string compileCan(string $expression)

Compile the can statements into valid PHP.

string compileCannot(string $expression)

Compile the cannot statements into valid PHP.

string compileElsecan(string $expression)

Compile the else-can statements into valid PHP.

string compileElsecannot(string $expression)

Compile the else-cannot statements into valid PHP.

string compileEndcan()

Compile the end-can statements into valid PHP.

string compileEndcannot()

Compile the end-cannot statements into valid PHP.

Details

protected string compileCan(string $expression)

Compile the can statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileCannot(string $expression)

Compile the cannot statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileElsecan(string $expression)

Compile the else-can statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileElsecannot(string $expression)

Compile the else-cannot statements into valid PHP.

Parameters

string $expression

Return Value

string

protected string compileEndcan()

Compile the end-can statements into valid PHP.

Return Value

string

protected string compileEndcannot()

Compile the end-cannot statements into valid PHP.

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/View/Compilers/Concerns/CompilesAuthorizations.html