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
+64
View File
@@ -0,0 +1,64 @@
<?php
namespace App\Policies;
use App\User;
use App\Veranstaltung;
use Illuminate\Auth\Access\HandlesAuthorization;
class VeranstaltungPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view the veranstaltung.
*
* @param \App\User $user
* @param \App\Veranstaltung $veranstaltung
* @return mixed
*/
public function view(User $user, Veranstaltung $veranstaltung)
{
}
/**
* Determine whether the user can create veranstaltungs.
*
* @param \App\User $user
* @return mixed
*/
public function create(User $user)
{
//
}
/**
* Determine whether the user can update the veranstaltung.
*
* @param \App\User $user
* @param \App\Veranstaltung $veranstaltung
* @return mixed
*/
public function update(User $user, Veranstaltung $veranstaltung)
{
//
}
/**
* Determine whether the user can delete the veranstaltung.
*
* @param \App\User $user
* @param \App\Veranstaltung $veranstaltung
* @return mixed
*/
public function delete(User $user, Veranstaltung $veranstaltung)
{
//
}
public function eintragen(User $user,Veranstaltung $veranstaltung)
{
}
}