<?php {
public function get($action)
{
if ($class = app('statamic.actions')->get($action)) {
return app($class);
}
}
<?php public function get($action)
{
if ($class = app('statamic.actions')->get($action)) {
return app($class);
}
}
<?php public function all()
{
return app('statamic.actions')->map(function ($class) {
return app($class);
})->values();
}
<?php public function all()
{
return app('statamic.actions')->map(function ($class) {
return app($class);
})->values();
}
<?php public function handle($request, Closure $next)
{
$cacher = app(Cacher::class);
if ($response = $cacher->get($request)) {
return $response;
<?php return;
}
app(Cacher::class)->handleInvalidationEvent($event);
}
<?php public function make()
{
return app(Asset::class);
}
public function query()
<?php public function query()
{
return app(QueryBuilder::class);
}
public function save($asset)
<?php ->unique()
->values();
app(PermissionCache::class)->clear();
return $this;
}
<?php public function permissions()
{
$cache = app(PermissionCache::class);
if ($cached = $cache->get($this->id)) {
return $cached;
<?php public static function rules()
{
if (version_compare(app()->version(), '8.43.0', '<')) {
return 'min:8';
}
<?php protected function limiter()
{
return app(RateLimiter::class);
}
<?php throw new \Exception('Factory not supported. Use User::make() to get an instance.');
return app(UserFactory::class);
}
public function make(): User
<?php public function make(): User
{
return app(User::class);
}
public function current(): ?User
<?php public function roleRepository()
{
return app($this->roleRepository)->path(
$this->config['paths']['roles'] ?? resource_path('users/roles.yaml')
);
}