MessageProvider.php
TLDR
This file defines an interface called MessageProvider
in the Illuminate\Contracts\Support
namespace. The interface has a single method getMessageBag()
which returns an instance of \Illuminate\Contracts\Support\MessageBag
.
Methods
getMessageBag
This method is responsible for returning the messages for the instance. The method does not take any arguments and returns an instance of \Illuminate\Contracts\Support\MessageBag
.
<?php
namespace Illuminate\Contracts\Support;
interface MessageProvider
{
/**
* Get the messages for the instance.
*
* @return \Illuminate\Contracts\Support\MessageBag
*/
public function getMessageBag();
}