PHP Classes

File: examples/views/TestSecurity/test.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/views/TestSecurity/test.blade.php   Download  
File: examples/views/TestSecurity/test.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: Update of examples/views/TestSecurity/test.blade.php
Date: 2 years ago
Size: 667 bytes


Class file image Download
<h1> test auth and guest </h1>
    The user is authenticated...

    The user is not authenticated... (guest)


    // The user is authenticated as admin...

    // The user is not authenticated as admin... (guest)

<h1>can todo</h1>

@can('update', $post)
    <!-- The Current User Can Update The Post -->
@elsecan('create', App\Post::class)
    <!-- The Current User Can Create New Post -->

@cannot('update', $post)
    <!-- The Current User Can't Update The Post -->
@elsecannot('create', App\Post::class)
    <!-- The Current User Can't Create New Post -->