Menu

## ContactPolicy
in package
uses HandlesAuthorization

ContactPolicy.php : 9

### Table of Contents

#### Methods

create() : mixed
  Determine whether the user can create queries.
delete() : mixed
  Determine whether the user can delete the query.
forceDelete() : mixed
  Determine whether the user can permanently delete the contact.
restore() : mixed
  Determine whether the user can restore the contact.
update() : mixed
  Determine whether the user can update the query.
view() : mixed
  Determine whether the user can view the query.
viewAny() : mixed
  Determine whether the user can view any queries.

### Methods

#### create()

ContactPolicy.php : 44

Determine whether the user can create queries.

`public create(User $user) : mixed`

##### Parameters

$user : User

#### delete()

ContactPolicy.php : 69

Determine whether the user can delete the query.

`public delete(User $user, Query $query) : mixed`

##### Parameters

$user : User
$query : Query

#### forceDelete()

ContactPolicy.php : 93

Determine whether the user can permanently delete the contact.

`public forceDelete(User $user, Query $contact) : mixed`

##### Parameters

$user : User
$contact : Query

#### restore()

ContactPolicy.php : 81

Determine whether the user can restore the contact.

`public restore(User $user, Query $contact) : mixed`

##### Parameters

$user : User
$contact : Query

#### update()

ContactPolicy.php : 56

Determine whether the user can update the query.

`public update(User $user, Query $query) : mixed`

##### Parameters

$user : User
$query : Query

#### view()

ContactPolicy.php : 32

Determine whether the user can view the query.

`public view(User $user, Query $query) : mixed`

##### Parameters

$user : User
$query : Query

#### viewAny()

ContactPolicy.php : 19

Determine whether the user can view any queries.

`public viewAny(User $user) : mixed`

##### Parameters

$user : User

## Search results