for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\Conditions;
trait Authentication
{
public function youShouldBeGuest($guard = null)
return function () use ($guard) {
return auth($guard)->guest();
};
}
public function youShouldBeLoggedIn($guard = null)
return auth($guard)->check();