Showing 10 of 1,322 results.

The Controller Function | Laravel Paginator Pretty URLs

…) ; 13 $ users = PrettyPaginator :: make ( $ pagedData , $ totalUsers , $ perPage ) ; 14 15 return View :: make ( ' users.list ' ) -> with ( ' users ' , $ users ) ; 16 } 17 18 } Important : It should be noted that the above code assumes you have...

Laravel 5.5 String Helper Method: title

This method will convert the given $value to look like a traditional print title. This method essentially will transform the entire $value to its lower cased equivalent and then uppercase the first character of each word it finds. This method may...

Laravel Artisan Route Command: The route:cache Command

…ng the route:cache command is straightforward: 1 # Cache the applications routes. 2 php artisan route:cache The cache file will be stored in the bootstrap/cache/routes.php file. Routes are cached as serialized objects stored stored using base 64...

Prettier 2 Plugin | Formatting

If your project still relies on Prettier 2 you must ensure that you install version 1 of the prettier-plugin-antlers plugin. 1 npm install prettier-plugin-antlers@^1 --save-dev Once the plugin is installed you will need to modify your projects...

Workspaces

…ents at once or look for specific nodes and features across the workspace. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 use Stillat \ BladeParser \ Workspaces \ Workspace ; 5 6 $ workspace = new Workspace ( ) ; 7 $ workspace ->...

hasAnyComments | Workspaces

Returns a value indicating if the workspace has any Blade comments. 1 <?php 2 3 public function hasAnyComments ( ) : bool ;

getComponents | Workspaces

Returns all component tags within workspace document. This method will return all component tags within a document, including closing tags and self-closing tags. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function...

findComponentsByTagName | Workspaces

Finds all components with the provided tag name. This method will return all component tags that match the provided name, including closing tags. Argument Description $tagName The tag name to filter on. 1 <?php 2 3 use Stillat \ BladeParser \...

hasAnyComponents | Workspaces

Returns a value indicating if the workspace has any component tags. 1 <?php 2 3 public function hasAnyComponents ( ) : bool ;

Filter Search