Search

Showing 7 of 1,216 result(s)

/blog/2014/07/28/laravel-paginator-pretty-urls#content-adding-our-conditional-check

…need to add that conditional check we talked about earlier: And then finally we return the current page's URL: That's the changes we need to make to the getUrl($page) function. There are still some things we need to do to make it useful. When we...

/blog/2016/12/01/laravel-artisan-command-input-and-command-signatures#content-array-parameters

…<websites> (<websites>)... in the usage section. The following example demonstrates how to execute a command with a signature similar to the previous example. The firstName is set to John ; the last name is set to Doe ; and the websites supplied...

/blog/2014/09/20/laravel-and-kint-debugging#content-the-function

Looking through the issue some more today, I decided to write a new modify one of Kint's functions to work really nice with Laravel. Add this function to some helpers file, or a file that is accessed throughout your application: This is almost the...

/blog/2017/11/30/checking-if-a-string-starts-with-a-particular-value-in-laravel-laravel-55-string-helper-method-startswith

startsWith does the opposite of ends_with , and has the same rules of use. Instead of checking if a given $haystack ends with any of the supplied $needles , startsWith checks if a given $haystack starts with any of the $needles .

/blog/2017/11/30/generating-urls-from-strings-in-laravel-laravel-55-string-helper-method-slug

The slug helper method will format the given $title to resemble a URI slug. It does this through a series of steps: Convert the, $title, to ASCII formatting (using the, ascii, function, along with the provided, $language, );, Converts whitespace,...

/blog/2017/11/30/making-sure-strings-start-with-a-given-value-in-laravel-laravel-55-string-helper-method-start

The start helper method will make sure that a given $value always begin with exactly one occurrence of the $prefix . This helper method can be used to help generate absolute URLs from relative path names. The $prefix can be any string value.

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

…t: If arguments are supplied to the url helper function, it will invoke the to method on the resolved URL Generator instance with all of the supplied arguments: The following lines are equivalent: both calls would result in the following URL:...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.