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
Let's assume we have a PostsController like the following in a Laravel project:
class PostsController extends Controller { public function index() { $posts = Post::all(); return Inertia::render( 'Posts/Index', [ 'posts' => $posts ] ); } }
This code generates a props type called PostsIndexProps, which can be used as follows:
<script setup lang="ts"> import { PostsIndexProps } from '@/types/props'; const page = usePage<PostsIndexProps>() </script>
The text was updated successfully, but these errors were encountered:
That would be great!
Sorry, something went wrong.
No branches or pull requests
Let's assume we have a PostsController like the following in a Laravel project:
This code generates a props type called PostsIndexProps, which can be used as follows:
The text was updated successfully, but these errors were encountered: