Showing 10 of 1,204 results.

Prettier 2 | Prettier Plugin Installation

…ugin-blade in your project, you can add the following to your project's .prettierrc file: 1 { 2 " plugins " : [ 3 " ./node_modules/prettier-plugin-blade/ " 4 ] , 5 " overrides " : [ 6 { 7 " files " : [ 8 " *.blade.php " 9 ] , 10 " options " : {...

VS Code Prettier Troubleshooting | Prettier Plugin Installation

Suppose you are using the Prettier VS Code extension and are encountering an error stating something similar to "There are no formatters for Blade files." In that case, you may need to update your VS Code configuration and inform Prettier about...

removeCompiledFiles | Compiling Workspaces

Attempts to remove all compiled files produced by the workspace. 1 <?php 2 3 use Stillat \ BladeParser \ Workspaces \ Workspace ; 4 5 public function removeCompiledFiles ( ) : Workspace ;

withDefaultCompilerOptions | Compiling Workspaces

Removes any custom compiler options and restores the workspace to defaults. 1 <?php 2 3 use Stillat \ BladeParser \ Workspaces \ Workspace ; 4 5 public function withDefaultCompilerOptions ( ) : Workspace ;

getCompilerOptions | Compiling Workspaces

Returns the currently configured compiler options. If no custom compiler options were configured, a set of default options will be created. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ DocumentCompilerOptions ; 4 5 public function...

getCompiledDocument | Compiling Workspaces

Retrieves a Document instance using the provided compiled path name. Argument Description $path The compiled path. 1 <?php 2 3 use Stillat \ BladeParser \ Document \ Document ; 4 5 public function getCompiledDocument ( 6 string $ path 7 ) :...

addDirectory | Workspaces

Recursively adds all Blade templates to the workspace discovered within the provided directory. Argument Description $directory The path. 1 <?php 2 3 use Stillat \ BladeParser \ Workspaces \ Workspace ; 4 5 public function addDirectory ( 6 string...

addFile | Workspaces

Adds a single Blade template to the workspace. If the provided path does not end with a configured Blade extension, the file will not be added to the workspace. Argument Description $path The file path. 1 <?php 2 3 use Stillat \ BladeParser \...

findDirectivesByName | Workspaces

Returns all directives with the provided name in the workspace. Argument Description $name The directive name to search 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function findDirectivesByName ( 6 string $ name 7 )...

getComments | Workspaces

Retrieves all Blade comments in the workspace. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 4 5 public function getComments ( ) : NodeCollection ;