View
class View extends Facade (View source)
Properties
static protected Application | $app | The application instance being facaded. |
from Facade |
static protected array | $resolvedInstance | The resolved object instances. |
from Facade |
static protected bool | $cached | Indicates if the resolved instance should be cached. |
from Facade |
Methods
Create a fresh mock instance for the given class.
Get the registered name of the component.
Resolve the facade root instance from the container.
Get the application instance behind the facade.
Handle dynamic, static calls to the object.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Facade at line 44
static void
resolved(Closure $callback)
Run a Closure when the facade has been resolved.
in
Facade at line 62
static MockInterface
spy()
Convert the facade into a Mockery spy.
in
Facade at line 78
static MockInterface
partialMock()
Initiate a partial mock on the facade.
in
Facade at line 94
static Expectation
shouldReceive()
Initiate a mock expectation on the facade.
static Expectation
expects()
Initiate a mock expectation on the facade.
static protected MockInterface
createFreshMockInstance()
Create a fresh mock instance for the given class.
static protected MockInterface
createMock()
Create a fresh mock instance for the given class.
static protected bool
isMock()
Determines whether a mock is set as the instance of the facade.
static protected string|null
getMockableClass()
Get the mockable class for the bound instance.
static void
swap(mixed $instance)
Hotswap the underlying instance behind the facade.
static protected bool
isFake()
Determines whether a "fake" has been set as the facade instance.
static mixed
getFacadeRoot()
Get the root object behind the facade.
static protected string
getFacadeAccessor()
Get the registered name of the component.
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
static void
clearResolvedInstance(string $name)
Clear a resolved facade instance.
static void
clearResolvedInstances()
Clear all of the resolved instances.
static Collection
defaultAliases()
Get the application default aliases.
static Application
getFacadeApplication()
Get the application instance behind the facade.
static void
setFacadeApplication(Application $app)
Set the application instance.
static mixed
__callStatic(string $method, array $args)
Handle dynamic, static calls to the object.
static View
file(string $path, Arrayable|array $data = [], array $mergeData = [])
No description
static View
make(string $view, Arrayable|array $data = [], array $mergeData = [])
No description
static View
first(array $views, Arrayable|array $data = [], array $mergeData = [])
No description
static string
renderWhen(bool $condition, string $view, Arrayable|array $data = [], array $mergeData = [])
No description
static string
renderUnless(bool $condition, string $view, Arrayable|array $data = [], array $mergeData = [])
No description
static string
renderEach(string $view, array $data, string $iterator, string $empty = 'raw|')
No description
static bool
exists(string $view)
No description
static Engine
getEngineFromPath(string $path)
No description
static mixed
share(array|string $key, mixed|null $value = null)
No description
static void
incrementRender()
No description
static void
decrementRender()
No description
static bool
doneRendering()
No description
static bool
hasRenderedOnce(string $id)
No description
static void
markAsRenderedOnce(string $id)
No description
static void
addLocation(string $location)
No description
static Factory
addNamespace(string $namespace, string|array $hints)
No description
static Factory
prependNamespace(string $namespace, string|array $hints)
No description
static Factory
replaceNamespace(string $namespace, string|array $hints)
No description
static void
addExtension(string $extension, string $engine, Closure|null $resolver = null)
No description
static void
flushState()
No description
static void
flushStateIfDoneRendering()
No description
static array
getExtensions()
No description
static EngineResolver
getEngineResolver()
No description
static ViewFinderInterface
getFinder()
No description
static void
setFinder(ViewFinderInterface $finder)
No description
static void
flushFinderCache()
No description
static Dispatcher
getDispatcher()
No description
static void
setDispatcher(Dispatcher $events)
No description
static Container
getContainer()
No description
static void
setContainer(Container $container)
No description
static mixed
shared(string $key, mixed $default = null)
No description
static array
getShared()
No description
static void
macro(string $name, object|callable $macro)
No description
static void
mixin(object $mixin, bool $replace = true)
No description
static bool
hasMacro(string $name)
No description
static void
flushMacros()
No description
static void
startComponent(Closure|string $view, array $data = [])
No description
static void
startComponentFirst(array $names, array $data = [])
No description
static string
renderComponent()
No description
static mixed|null
getConsumableComponentData(string $key, mixed $default = null)
No description
static void
slot(string $name, string|null $content = null, array $attributes = [])
No description
static void
endSlot()
No description
static array
creator(array|string $views, Closure|string $callback)
No description
static array
composers(array $composers)
No description
static array
composer(array|string $views, Closure|string $callback)
No description
static void
callComposer(View $view)
No description
static void
callCreator(View $view)
No description
static void
startFragment(string $fragment)
No description
static string
stopFragment()
No description
static mixed
getFragment(string $name, string|null $default = null)
No description
static array
getFragments()
No description
static void
flushFragments()
No description
static void
startSection(string $section, string|null $content = null)
No description
static void
inject(string $section, string $content)
No description
static string
yieldSection()
No description
static string
stopSection(bool $overwrite = false)
No description
static string
appendSection()
No description
static string
yieldContent(string $section, string $default = '')
No description
static string
parentPlaceholder(string $section = '')
No description
static bool
hasSection(string $name)
No description
static bool
sectionMissing(string $name)
No description
static mixed
getSection(string $name, string|null $default = null)
No description
static array
getSections()
No description
static void
flushSections()
No description
static void
addLoop(Countable|array $data)
No description
static void
incrementLoopIndices()
No description
static void
popLoop()
No description
static stdClass|null
getLastLoop()
No description
static array
getLoopStack()
No description
static void
startPush(string $section, string $content = '')
No description
static string
stopPush()
No description
static void
startPrepend(string $section, string $content = '')
No description
static string
stopPrepend()
No description
static string
yieldPushContent(string $section, string $default = '')
No description
static void
flushStacks()
No description
static void
startTranslation(array $replacements = [])
No description
static string
renderTranslation()
No description