Search

Showing 7 of 1,975 result(s)

/blog/2018/04/14/laravel-5-accessing-and-manipulating-session-data-with-session#content-retrieving-a-session-value

Values can be retrieved with the session function by supplying a $key . To retrieve the test value from the earlier example the function call would look like so: It is possible that a session value does not exist. When this is the case, the...

/blog/2018/04/14/laravel-5-accessing-and-sending-http-responses-with-response#content-supplying-additional-headers

In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers :

/blog/2018/04/14/laravel-5-generating-paths-relative-to-the-configuration-directory-with-config_path

…config directory. It can also be used to construct paths relative to the configuration directory by supplying a $path .The signature of the config_path function is:The following examples will assume that the Laravel application is installed in...

/blog/2018/04/14/laravel-5-generating-paths-relative-to-the-database-directory-with-database_path

…e database directory. It can also be used to construct paths relative to the database directory by supplying a $path .The signature of the database_path function is:The following examples will assume that the Laravel application is installed in...

/blog/2018/04/14/laravel-5-generating-paths-relative-to-the-public-directory-with-public_path

…to the public directory. It can also be used to construct paths relative to the public directory if a $path is supplied.The signature of the public_path function is:The following examples will assume that the Laravel application is installed in...

/blog/2018/04/14/laravel-5-generating-paths-relative-to-the-storage-directory-with-storage_path

…the storage directory. It can also be used to construct paths relative to the storage directory if a $path is supplied.The signature of the storage_path function is:The following examples will assume that the Laravel application is installed in...

/blog/2018/04/14/laravel-5-performing-http-redirects-with-redirect#content-supplying-additional-headers

In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers :