Skip to content

GitignoreBlock ​

php
final class Zairakai\LaravelDevTools\Services\GitignoreBlock

The block of .gitignore for the files of the tools.

Source: src/Services/GitignoreBlock.php

Constants ​

NameValueDescription
BLOCK`<<<'GITIGNORE'
    # Dev Tools temporary files
    # ----------------
    .*.tmp.*
    .dev-tools-backup/

    GITIGNORE` |  |

Methods ​

added() ​

php
public static function added(string $text): string

The text with the block added, or null when it already holds one (with this title or the older one).

removed() ​

php
public static function removed(string $text): string

The text without the block, or null when it does not hold the block as the setup writes it.

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.