Added Auth

This commit is contained in:
chrosey
2017-06-15 12:47:36 +02:00
parent e6c4eb2009
commit 8b98db74a2
20 changed files with 614 additions and 23 deletions
+59
View File
@@ -0,0 +1,59 @@
<?php
namespace App\Policies;
use App\User;
use App\Eintragung;
use Illuminate\Auth\Access\HandlesAuthorization;
class EintragPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view the eintragung.
*
* @param \App\User $user
* @param \App\Eintragung $eintragung
* @return mixed
*/
public function view(User $user, Eintragung $eintragung)
{
//
}
/**
* Determine whether the user can create eintragungs.
*
* @param \App\User $user
* @return mixed
*/
public function create(User $user)
{
//
}
/**
* Determine whether the user can update the eintragung.
*
* @param \App\User $user
* @param \App\Eintragung $eintragung
* @return mixed
*/
public function update(User $user, Eintragung $eintragung)
{
//
}
/**
* Determine whether the user can delete the eintragung.
*
* @param \App\User $user
* @param \App\Eintragung $eintragung
* @return mixed
*/
public function delete(User $user, Eintragung $eintragung)
{
//
}
}