<?php

namespace RadDB\Policies;

use RadDB\Tube;
use RadDB\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Auth\Access\HandlesAuthorization;

class TubePolicy
{
    use HandlesAuthorization;

    public function before($user, $ability)
    {
        return $user->isAdmin();
    }

    /**
     * Determine whether the user can view the tube.
     *
     * @param  \RadDB\User  $user
     * @param  \RadDB\Tube  $tube
     * @return mixed
     */
    public function view(User $user, Tube $tube)
    {
        //
    }

    /**
     * Determine whether the user can create tubes.
     *
     * @param  \RadDB\User  $user
     * @return mixed
     */
    public function create(User $user)
    {
        return Auth::check();
    }

    /**
     * Determine whether the user can update the tube.
     *
     * @param  \RadDB\User  $user
     * @param  \RadDB\Tube  $tube
     * @return mixed
     */
    public function update(User $user, Tube $tube)
    {
        return Auth::check();
    }

    /**
     * Determine whether the user can delete the tube.
     *
     * @param  \RadDB\User  $user
     * @param  \RadDB\Tube  $tube
     * @return mixed
     */
    public function delete(User $user, Tube $tube)
    {
        //
    }
}

<?php

namespace RadDB\Policies;

use RadDB\Tube;
use RadDB\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Auth\Access\HandlesAuthorization;

class TubePolicy
{
    use HandlesAuthorization;

    public function before($user, $ability)
    {
        return $user->isAdmin();
    }

    /**
     * Determine whether the user can view the tube.
     *
     * @param  \RadDB\User  $user
     * @param  \RadDB\Tube  $tube
     * @return mixed
     */
    public function view(User $user, Tube $tube)
    {
        //
    }

    /**
     * Determine whether the user can create tubes.
     *
     * @param  \RadDB\User  $user
     * @return mixed
     */
    public function create(User $user)
    {
        return Auth::check();
    }

    /**
     * Determine whether the user can update the tube.
     *
     * @param  \RadDB\User  $user
     * @param  \RadDB\Tube  $tube
     * @return mixed
     */
    public function update(User $user, Tube $tube)
    {
        return Auth::check();
    }

    /**
     * Determine whether the user can delete the tube.
     *
     * @param  \RadDB\User  $user
     * @param  \RadDB\Tube  $tube
     * @return mixed
     */
    public function delete(User $user, Tube $tube)
    {
        return Auth::check();
    }
}

Add authentication check to destroy() policy
Add authentication check to destroy() policy
