Showing 7 of 1,975 result(s)
…y (which is named app by default). The exact value returned by calling app_path is dependent on the specific folder structure where the application is residing.The signature of the app_path function is:An example path returned might look like...
If the supplied $path to asset and secure_asset contains a protocol, that protocol is used regardless of what function or flags are set. For example, if a URI with the http:// protocol is supplied to the secure_asset function, the resulting URI...
…class, its traits and any base classes.The signature of the class_uses_recursive function is:Using the ExampleClass from the previous example: $traits = class_uses_recursive('ExampleClass'); the $traits array would contain the following values:...
The connection method will return a new schema builder ("Illuminate\Database\Schema\Builder") instance for the given connection. The $name is the name of the connection as it appears in the database configuration file.
The add method adds a new message to the MessageBag instance. The message is identified by a given $key and contains the value $message . The add method returns a reference to the current MessageBag instance.
The keys method is used to retrieve all of keys stored inside the MessageBag instance.The signature of the keys method is: public function keys();The following code example demonstrate the usage of the keys method: After the above code has...
The put method is used to add a new MessageBag implementation instance to the ViewErrorBag instance, supplied as the argument to the $bag parameter with some name determined by the $key argument.