This tutorial is a part of my new Course where we'll build multiple practical projects with the Laravel, Inertia.js and Vue 3 stack, and to get an idea about the projects that we'll build along the way, you can check out the course landing page here: www.udemy.com/course/laravel-with-inertia-and-vue/?couponCode=6EEE73BE73A2B230F934&referralCode=7C65E5BADEAB1FB9BD49
Im a little confused on pagination -> it seems that my page actually reloads and doesnt seem to use inertia - shouldn't we be using the return Inertia::location(route('students')); or inertia render in the middleware? Also pagination doesnt do anything when using your repo here does not throw an error but links don't work-> defineProps({ data: { type: Object, }, pageNumberUpdated: { type: Function, required: true, }, }); const updatePageNumber = (link) => { when I change: const to: pageNumberUpdated -> it works
i think it is pretty good. thank you.. but this is not a course for those who is expecting to learn laravel or vue. it is more write along project which will give you a perspective, but not learn details or whys.. other than that good project.
That depends on how you'll display the data, if you paginate the data, it wont matter how many records we have in the database, but its important to eager load the data while querying it from the database.
not really, my blog is based in Inertia and Svelte, and I never faced issues regarding SEO, you just need to run a job on your server and that will enable SSR, you can check the documentation to learn more about it
I’m a beginner of VILT stack development. I have been very impressed by this video. The incremental search and the class filter is very powerful & beautiful. But the scopeSearch method has too deep nest, I think. How about this? public function scopeSearch(Builder $query, Request $request) { $search = $request->search; $classId = $request->class_id; return $query->when($search, function ($query) use ($search) { return $query->whereAny(['name', 'email'], 'like', '%' . $search . '%'); })->when($classId, function ($query) use ($classId) { return $query->where('class_id', $classId); }); }
This tutorial is a part of my new Course where we'll build multiple practical projects with the Laravel, Inertia.js and Vue 3 stack, and to get an idea about the projects that we'll build along the way, you can check out the course landing page here: www.udemy.com/course/laravel-with-inertia-and-vue/?couponCode=6EEE73BE73A2B230F934&referralCode=7C65E5BADEAB1FB9BD49
This is by far the best vue inertia laravel video on the planet earth. i got so much insights from this video. Thanks Sir.
This is by far the best video on vue inertia laravel on the planet earth. thanks sir
Kudos sir.. Looking forward to your next video tutorial.
Im a little confused on pagination -> it seems that my page actually reloads and doesnt seem to use inertia - shouldn't we be using the return Inertia::location(route('students')); or inertia render in the middleware? Also pagination doesnt do anything when using your repo here does not throw an error but links don't work->
defineProps({
data: {
type: Object,
},
pageNumberUpdated: {
type: Function,
required: true,
},
});
const updatePageNumber = (link) => {
when I change: const to: pageNumberUpdated -> it works
Tapan sir can you please make a video about your vs code (theme, font, cursor background animation color, extention, etc)
i think it is pretty good. thank you.. but this is not a course for those who is expecting to learn laravel or vue. it is more write along project which will give you a perspective, but not learn details or whys.. other than that good project.
Thanks. How will the performance be affected if we had a million students?
That depends on how you'll display the data, if you paginate the data, it wont matter how many records we have in the database, but its important to eager load the data while querying it from the database.
Is Inertia bad If I care about SEO?
not really, my blog is based in Inertia and Svelte, and I never faced issues regarding SEO, you just need to run a job on your server and that will enable SSR, you can check the documentation to learn more about it
@@TapanSharma. Ty man.
I'll finish to watch this tutorial first But I'm already almoost sold to buy your courses on Udemy.
I’m a beginner of VILT stack development. I have been very impressed by this video. The incremental search and the class filter is very powerful & beautiful. But the scopeSearch method has too deep nest, I think. How about this?
public function scopeSearch(Builder $query, Request $request)
{
$search = $request->search;
$classId = $request->class_id;
return $query->when($search, function ($query) use ($search) {
return $query->whereAny(['name', 'email'], 'like', '%' . $search . '%');
})->when($classId, function ($query) use ($classId) {
return $query->where('class_id', $classId);
});
}
I am getting this error when migrating SQLSTATE[HY000]: General error: 1005 Can't create table `student`.`students` (errno: 150 "Foreign key constraint is incorrectly formed") (Connection: mysql, SQL: alter table `students` add constraint `students_section_id_foreign` foreign key (`section_id`) references `sections` (`id`))
on which migration file is this happening? nobody else faced this issue, so there's probably something wrong on your end