Showing 10 of 1,322 results.

getPhpTags | Querying Document Nodes

…raw PHP regions within the source template. PHP tags will be created whenever the following types of PHP tags are encountered: PHP Short Echo:, <?= ?>, PHP Open:, <?php ?>, If you are looking to retrieve PHP blocks created using Blade's @php...

firstOfType | Querying Document Nodes

…pe. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 5 public function firstOfType ( 6 string $ type 7 ) : AbstractNode ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 use Stillat \ BladeParser \...

lastOfType | Querying Document Nodes

…ype. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 5 public function lastOfType ( 6 string $ type 7 ) : AbstractNode ; Example Use 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 use Stillat \ BladeParser \...

Creating a Simple Honeypot Field in Laravel

…a simple method to implement a honeypot form mechanism. A honeypot is a simple security measure designed to catch bots and automated scripts using an inconspicuous form field that human users should leave empty. We will implement our honeypot in...

Flat Threads | Responses and Replies

By default, Meerkat will assume that you will be displaying comments as nested lists. Because of this, the comments that are available in the comments variable will be the root level comments. For example, if there are only two root level...

Upgrading from Prettier 2 | Prettier Plugin Installation

If you are upgrading from Prettier 2, note the lack of ./node_modules/ in the following paths. 1 { 2 " plugins " : [ 3 " prettier-plugin-blade " 4 ] , 5 " overrides " : [ 6 { 7 " files " : [ 8 " *.blade.php " 9 ] , 10 " options " : { 11 " parser "...

Creating the Meerkat Helper File | Advanced Filtering

Meerkat will look for a meerkat/filters.php file when it starts. If you do not have this directory and file, feel free to create it now before we continue. The directory structure should look similar to this once done: 1 project-rooot/ 2 ├── app/...