Skip to content

Commit 2935473

Browse files
committed
Refactor core.blade.php
Signed-off-by: Pushpak Chhajed <[email protected]>
1 parent c5db2f4 commit 2935473

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.ai/folio/core.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
<code-snippet name="Example folio:page Commands for Automatic Routing" lang="shell">
1616
// Creates: resources/views/pages/products.blade.php → /products
17-
{{ $assist->artisanCommand("folio:page 'products'") }}
17+
{!! $assist->artisanCommand('folio:page "products"') !!}
1818

1919
// Creates: resources/views/pages/products/[id].blade.php → /products/{id}
20-
{{ $assist->artisanCommand("folio:page 'products/[id]'") }}
20+
{!! $assist->artisanCommand('folio:page "products/[id]"') !!}
2121
</code-snippet>
2222

2323
- Add a 'name' to each new Folio page at the very top of the file so it has a named route available for other parts of the codebase to use.

.ai/laravel/core.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
### Testing
4040
- When creating models for tests, use the factories for the models. Check if the factory has custom states that can be used before manually setting up the model.
4141
- Faker: Use methods such as `$this->faker->word()` or `fake()->randomDigit()`. Follow existing conventions whether to use `$this->faker` or `fake()`.
42-
- When creating tests, make use of `{{ $assist->artisanCommand('make:test [options] <name>') }}` to create a feature test, and pass `--unit` to create a unit test. Most tests should be feature tests.
42+
- When creating tests, make use of `{{ $assist->artisanCommand('make:test [options] {name}') }}` to create a feature test, and pass `--unit` to create a unit test. Most tests should be feature tests.
4343

4444
### Vite Error
4545
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run `{{ $assist->nodePackageManagerCommand('run build') }}` or ask the user to run `{{ $assist->nodePackageManagerCommand('run dev') }}` or `{{ $assist->composerCommand('run dev') }}`.

.ai/phpunit/core.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@endphp
44
## PHPUnit Core
55

6-
- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use `{{ $assist->artisanCommand('make:test --phpunit <name>') }}` to create a new test.
6+
- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use `{{ $assist->artisanCommand('make:test --phpunit {name}') }}` to create a new test.
77
- If you see a test using "Pest", convert it to PHPUnit.
88
- Every time a test has been updated, run that singular test.
99
- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.

0 commit comments

Comments
 (0)