We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appreciate your time with extension, but if we support inertia hint like in provider
// their private module entry provider public function boot(): void { if ($this->app->has('inertia.testing.view-finder')) { $finder = app('inertia.testing.view-finder'); $finder->addNamespace('Admin', base_path('modules/Admin/resources/js/pages')); $this->app->bind('inertia.testing.view-finder', fn () => $finder); } }
file modules tree
modules ├─── ...[more modules] └── Admin ├── app │ ├── Http │ │ └── Controllers │ │ └── AdminController.php │ └── Providers │ ├── AdminServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── composer.json ├── config │ └── config.php ├── database │ ├── factories │ ├── migrations │ └── seeders │ └── AdminDatabaseSeeder.php ├── module.json ├── resources │ └── js │ └── pages │ └── index.tsx ├── routes │ ├── api.php │ └── web.php └── tests ├── Feature └── Unit
and usage
Admin::index that mapped to file [project]/modules/Admin/resources/js/pages/index.tsx
Admin::index
[project]/modules/Admin/resources/js/pages/index.tsx
so user with ease testing when controller action
Route::get('/admin', fn() => inertia('Admin::index', ['hello' => 'world']));
where as author can test using component key with they return on action.
use Inertia\Testing\AssertableInertia as Assert; class PodcastsControllerTest extends TestCase { public function test_can_view_podcast() { $this->get('/admin') ->assertInertia(fn (Assert $page) => $page ->component('Admin::index') ->has('hello','world'); } }
laravel-modules
modular
Source: https://github.com/kimhout-sam/vs-code-extension Example: https://github.com/cynonexus-platform/laravel-templates
The text was updated successfully, but these errors were encountered:
This would be a great feature
Sorry, something went wrong.
No branches or pull requests
Feature Description
appreciate your time with extension, but if we support inertia hint like in provider
file modules tree
and usage
Admin::index
that mapped to file[project]/modules/Admin/resources/js/pages/index.tsx
so user with ease testing when controller action
where as author can test using component key with they return on action.
Beneficial for folk using:
laravel-modules
ormodular
for create their private business logic that don't want to publish as packageProof
Source: https://github.com/kimhout-sam/vs-code-extension
Example: https://github.com/cynonexus-platform/laravel-templates
The text was updated successfully, but these errors were encountered: