Search

Showing 7 of 587 result(s)

/blog/2018/04/14/laravel-5-generating-public-urls-to-elixir-compiled-assets-with-elixir

The elixir helper function can be used to get the path to a versioned Elixir file. The function accepts two arguments, the name of the $file to find the path for and the $buildDirectory to look in. By default, the $buildDirectory is set to build...

/blog/2018/04/14/laravel-5-generating-public-urls-to-mix-compiled-assets-with-mix#content-changing-the-manifest-directory

The Laravel Mix manifest directory can be changed by supplying a value for the $manifestDirectory parameter. The manifest directory should contain the mix-manifest.json file, which contains a mapping of the asset paths and the versioned path...

/blog/2018/04/14/laravel-5-generating-urls-to-assets-with-asset

The asset function will return a URI composed of the application's URI and the given $path . If $secure is true , the returned URI will have the https:// schema, otherwise it will have the http:// schema. The application URI used to generate the...

/blog/2018/04/14/laravel-5-generating-urls-to-controller-actions-with-action#content-relative-urls

If you do want to generate the full URL to a controller action, simply supply a truth value of false for the $absolute parameter. The following example demonstrates this: The resulting URL of the function call would then be: /sayHello/Jim

/blog/2018/04/14/laravel-5-generating-urls-to-named-routes-with-route

The route helper function can be used to generate URLs to a given named route. The route function defines four parameters, but only three are used internally ( $name , $parameters and $absolute ). It acts a shortcut to calling the...

/blog/2018/04/14/laravel-5-generating-urls-with-url#content-generating-secure-urls

To generate secure URLs using the url helper function, supply an argument with the truth value of true to the $secure parameter. To generate secure URLs that do not require parameters simply supply an empty array [] as the argument for $parameters...

/blog/2018/04/14/laravel-5-notifying-server-side-clients-of-events-with-broadcast

The broadcast helper function is similar in function to the event helper function in that, if an event implements the "Illuminate\Contracts\Broadcasting\ShouldBroadcast" interface, it will dispatch the event to all server-side listeners and notify...