InteractsWithContainer

trait InteractsWithContainer (View source)

Methods

object swap(string $abstract, object $instance)

Register an instance of an object in the container.

object instance(string $abstract, object $instance)

Register an instance of an object in the container.

Details

protected object swap(string $abstract, object $instance)

Register an instance of an object in the container.

Parameters

string $abstract
object $instance

Return Value

object

protected object instance(string $abstract, object $instance)

Register an instance of an object in the container.

Parameters

string $abstract
object $instance

Return Value

object

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.html