Search

Showing 7 of 1,975 result(s)

/blog/2018/04/14/laravel-5-generating-paths-relative-to-the-application-root-with-app_path

…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...

/blog/2018/04/14/laravel-5-generating-secure-urls-to-assets-with-secure_asset#content-notes-on-asset-and-secureasset

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...

/blog/2018/04/15/laravel-5-finding-what-traits-a-class-uses-with-class_uses_recursive

…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:...

/blog/2018/04/21/laravel-5-facades#content-connectionname

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.

/blog/2018/04/21/laravel-5-message-bags-adding-messages-to-the-message-bag-with-add

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.

/blog/2018/04/21/laravel-5-message-bags-getting-all-of-the-message-keys-with-keys

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...

/blog/2018/04/21/laravel-5-view-error-bags-add-a-new-message-bag-instance-to-the-view-error-bag-with-put

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.