jeudi 4 février 2016

Where are abilities stored in Authorization service for Laravel 5?

The section for the Authorization service at the Laravel docs states some examples such as:

// Models
if ($request->user()->can('update-post', $post)) {
    // Update Post...
}

// Views
@can('update-post', $post)
    <a href="/post/{{ $post->id }}/edit">Edit Post</a>
@endcan

However, there is no mention to any kind of migration and schema.

How and where are the abilities stored?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire