How to Build Modern Laravel Apps With Inertia - Full 3 Hour Laracasts Course, with Jeffrey Way

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • Inertia.js, created by Jonathan Reinink, is an incredible tool that glues a server-side framework, like Laravel, to a client-side framework, like Vue. Watch this full series in episodic form on Laracasts: laracasts.com/series/build-mo...
    Think of it as a new, modern way to build traditional server-driven applications. With Inertia, you can continue using server-side routing, and controllers, and authentication, and validation. With Inertia, you don't need to learn how to build an API, and you definitely don't need to use OAuth. Instead, relax and continue creating apps the way you traditionally would. .
    I really think you're going to enjoy Inertia as much as I do. In fact, Laracasts itself uses Inertia under the hood; I wouldn't have it any other way. So let me show you everything I know about building modern apps with Laravel, Vue, and Inertia.js in this series.
    Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
    Laracasts: laracasts.com
    Laracasts Twitter: / laracasts
    Jeffrey Way Twitter: / jeffrey_way
    00:00 - What is Inertia.js
    05:37 - Install and Configure Inertia
    12:00 - Pages
    17:47 - Inertia Links
    25:00 - Progress Indicators
    26:57 - Perform Non-GET Requests
    33:40 - Preserve the Scroll Position
    37:43 - Active Links
    44:27 - Layout Files
    51:48 - Shared Data
    58:36 - Global Component Registration
    01:03:03 - Persistent Layouts
    01:06:58 - Default Layouts
    01:09:32 - Code Splitting and Dynamic Imports
    01:14:47 - Dynamic Head and Meta Tags
    01:24:03 - The Most Important SPA Security Concern
    01:30:55 - Pagination
    01:44:05 - Filtering
    01:57:41 - Inertia Forms 101
    02:08:27 - Render Failed Validation Messages
    02:13:58 - Inertia Form Helpers
    02:21:21 - Better Performance With Debounce and Throttle
    02:25:57 - Authentication With Inertia
    02:42:56 - Authorization Tips

ความคิดเห็น • 81

  • @Laracastsofficial
    @Laracastsofficial  ปีที่แล้ว +42

    Hey, folks. Sorry, but we had to reupload this. There was an audio glitch for one of the chapters, and TH-cam doesn't allow you to update an existing video.

  • @monarcas5502
    @monarcas5502 4 หลายเดือนก่อน +4

    I WISH I COULD LIKE IT 10 TIMES OVER AND OVER, sincerely thank you.

  • @tmanley1985
    @tmanley1985 2 หลายเดือนก่อน +1

    I have paid for laracasts since I think 2014 or so, even through periods of unemployment because Jeffrey Way gave me a career.

  • @CristianMeza
    @CristianMeza ปีที่แล้ว +1

    Thanks Jeffrey for this amazing intensive series of inertia

  • @Prezbar
    @Prezbar 9 วันที่ผ่านมา

    Really incredible ! I can watch your videos for hours even if it's about something I don't use.

  • @bulent2435
    @bulent2435 ปีที่แล้ว +1

    Thanks for this amazing series.

  • @nikigatrell8359
    @nikigatrell8359 ปีที่แล้ว

    Absolutely brilliant video!

  • @shafqatalinawaz3868
    @shafqatalinawaz3868 9 หลายเดือนก่อน

    Beautifully explained ❤

  • @MayankSinghParmar
    @MayankSinghParmar ปีที่แล้ว +2

    Every second of this video is just knowledge. I wonder why such a low view count and almost no like. Huge fan of the Jeffrey....

  • @neliobila
    @neliobila ปีที่แล้ว

    Thank you, this is a great tutorial, I liked more because of the use of script setup

  • @user-uo1lm2sv9c
    @user-uo1lm2sv9c 10 หลายเดือนก่อน +2

    Awesome Thank you for this wonderful tutorial

  • @humbulanimunyai6320
    @humbulanimunyai6320 ปีที่แล้ว +1

    This is awesome

  • @dmitrywebsmith4031
    @dmitrywebsmith4031 11 หลายเดือนก่อน

    Thank you very much. Very helpful!

  • @CometHajjar
    @CometHajjar 11 หลายเดือนก่อน

    Amazing... Thank you

  • @kwameadoko9542
    @kwameadoko9542 2 หลายเดือนก่อน

    I haven't watched this video for 3 minutes but I am leaving a comment because I know it will be great!

  • @alasdairmacintyre9383
    @alasdairmacintyre9383 3 หลายเดือนก่อน

    Goat tutorial guy

  • @aungthiha-xq2od
    @aungthiha-xq2od 7 หลายเดือนก่อน

    Amazing your tutorial video for me and motivate to buy Laracasts Package!

  • @asai_nagamasa2074
    @asai_nagamasa2074 ปีที่แล้ว

    thank you

  • @orbitsdev5904
    @orbitsdev5904 ปีที่แล้ว

    thank you sir

  • @waqarahmad7125
    @waqarahmad7125 ปีที่แล้ว

    thank you so much you are the best

  • @khalidtubail
    @khalidtubail 2 หลายเดือนก่อน

    Great video, I hope you make an updated one. Regards

  • @satisfakshin
    @satisfakshin 11 หลายเดือนก่อน +5

    All I can say is wow! The way you deliver so much knowledge in a logical progression is a skill!

    • @riobmunas8495
      @riobmunas8495 9 หลายเดือนก่อน

      Yeah,... I agree with you...

    • @michalbany5162
      @michalbany5162 5 หลายเดือนก่อน

      That was exactly the word that came out of my mouth after I finished the video ... 🤯🤯

  • @matthausnawan2817
    @matthausnawan2817 11 หลายเดือนก่อน

    Amazing tutorial, please update the PHPSTorm tips and tutorials!

  • @kareemabdallah1502
    @kareemabdallah1502 7 หลายเดือนก่อน

    thanks you

  • @mihkelpajunen8450
    @mihkelpajunen8450 3 หลายเดือนก่อน

    What a fantastic tutorial! I will definitely continue my journey on Laracasts

  • @valendionpradanapasalu4164
    @valendionpradanapasalu4164 24 วันที่ผ่านมา

    thanks

  • @giorgiofranchini77
    @giorgiofranchini77 ปีที่แล้ว +3

    Grazie.

  • @rehmanghani6726
    @rehmanghani6726 9 หลายเดือนก่อน

    Nice Tutorial Jeffery on Inertia, keep up the good work! What do you think is the best use case of using Inertia in our project?

  • @mawdhogallait5213
    @mawdhogallait5213 ปีที่แล้ว +3

    Good job Jeffrey, could you share your color scheme and font with us ? Really nice contrast.

  • @gaber42424
    @gaber42424 ปีที่แล้ว +1

    can you do a video on unit testing (at least configurations) with the inertia, as I don't use the vue/cli = i find it very hard to configure things out.

  • @havecodesoft
    @havecodesoft หลายเดือนก่อน

    I love how you tutor, Jeffrey. You're the best!
    I loved this tutorial but I use React instead of Vue, and there's not much community support for React with Laravel. Could you create something similar that explains the Inertia.js documentation for React developers? It would be incredibly helpful not just for me, but also for other developers using React with Laravel.

  • @dawidkasprzyca1268
    @dawidkasprzyca1268 ปีที่แล้ว

    How to deal with layouts and composition API in vue3? Is there any chance to use persistent layouts?

  • @jduxer
    @jduxer ปีที่แล้ว

    How should be in a case when I need request data to populate my vue component (some dropdown for example)?

  • @randisaputra8816
    @randisaputra8816 ปีที่แล้ว

    what the difference if we using lrv 9 ? because we not use export default again. thank you😢

  • @crimsonkid5962
    @crimsonkid5962 ปีที่แล้ว

    can i ask for your vscode theme, font, padding and etc?.. looks clean

  • @kemal6039
    @kemal6039 4 หลายเดือนก่อน +1

    Is there an updated version of this course? I was trying to follow until you edited the webpack.mix.js file. I'm on laravel 10 and I have vite instead of webpack.

  • @ebenezeroduro868
    @ebenezeroduro868 ปีที่แล้ว

    This is awesome. But how to you override global layout

  • @popplestones886
    @popplestones886 ปีที่แล้ว +5

    Can you show how to do the code splitting and dynamic imports if using vite instead of mix?

    • @peteremad5228
      @peteremad5228 10 หลายเดือนก่อน

      vite does it by default you don't need to do any thing

  • @DeadInside619
    @DeadInside619 ปีที่แล้ว

    Can you make a video introducing i18n to Laravel + Inertia.
    That is the ONE thing that I am struggling with.

  • @yoskokleng3658
    @yoskokleng3658 ปีที่แล้ว

    How about to hosting this project, is it the hosting normal laravel, right sir? thanks 🙏

  • @nunuhabu
    @nunuhabu ปีที่แล้ว

    what is the relationship bewteen splade and inertia?

  • @aleksnarjanen939
    @aleksnarjanen939 ปีที่แล้ว +4

    Default layouts chapter: This doesnt work if we use Laravel 9 with pre-installed Inertia Vue3, it uses resolvePageComponent from 'laravel-vite-plugin/inertia-helpers', any solution?

    • @fares7714
      @fares7714 ปีที่แล้ว +1

      i search and do this in my project it is work with me
      // vite.config.js
      import { defineConfig } from 'vite';
      import laravel from 'laravel-vite-plugin';
      import vue from '@vitejs/plugin-vue';
      export default defineConfig({
      plugins: [
      vue(),
      laravel({
      input: ['resources/css/app.css', 'resources/js/app.js'],
      refresh: true,
      }),
      ],
      });
      // app.js
      import { createApp, h } from 'vue'
      import { createInertiaApp } from '@inertiajs/inertia-vue3'
      createInertiaApp({
      resolve: name => import(`./Pages/${name}.vue`),
      setup({ el, App, props, plugin }) {
      createApp({ render: () => h(App, props) })
      .use(plugin)
      .mount(el)
      },
      })
      // app.blade.php


      Vue 3 in Laravel 9 with inertiajs
      @vite('resources/css/app.css')
      @inertiaHead
      @inertia
      @vite('resources/js/app.js')
      I hope this work with you bro

  • @myohannes81
    @myohannes81 ปีที่แล้ว

    how does multilanguage translation work?

  • @pl3x-net
    @pl3x-net ปีที่แล้ว

    At 1:07:43 in the Default Layouts chapter, you tell us to swap the import to a require, but this doesn't seem to be supported by Laravel anymore because of Vite. What do we do instead in that situation?

    • @pl3x-net
      @pl3x-net ปีที่แล้ว +1

      Ok, now I just feel dumb.. You told us this just a few minutes later in the video :3 You should have led with that lol

    • @pl3x-net
      @pl3x-net ปีที่แล้ว +6

      Turns out a bit more work was needed for us Vite users.
      resolve: name => {
      const page = resolvePageComponent(
      `./Pages/${name}.vue`,
      import.meta.glob('./Pages/**/*.vue')
      );
      page.then((module) => {
      if (module.default.layout === undefined) {
      module.default.layout = Layout;
      }
      });
      return page;
      },

    • @alexeydoronchenko389
      @alexeydoronchenko389 ปีที่แล้ว +2

      @@pl3x-net It was very helpfull! thanx!

  • @cesarmendonca2807
    @cesarmendonca2807 ปีที่แล้ว +4

    Valeu!

  • @hammasahmed5592
    @hammasahmed5592 ปีที่แล้ว

    Inertia docs says Inertia isn't a FRAMEWORK, Sir Jeff Passed it as a one of the used technology frameworks at this series !! ?? Anyway I'm a big fan of you. You're doing a great job. Thank you so much

  • @codingwithjason
    @codingwithjason 4 หลายเดือนก่อน

    What is that app for sqlite db viewer?

  • @ashraf-uzzaman
    @ashraf-uzzaman 8 หลายเดือนก่อน

    why do you use composition API i am little comfortable in options api

  • @jamlizzy101
    @jamlizzy101 ปีที่แล้ว +1

    When installing Laravel 9, it does not show webpack.js in the root directory to add vue...

    • @khangle6872
      @khangle6872 ปีที่แล้ว

      Because laravel use Vite instead of webpack now

  • @cafedelprogramador
    @cafedelprogramador ปีที่แล้ว +1

    hi! Is the same course that you published a few days ago?

  • @section31
    @section31 ปีที่แล้ว

    Make a new one with react and inertia 1

  • @AMith-lv2cv
    @AMith-lv2cv ปีที่แล้ว

    why nobody asks about this font.. editor font please?

    • @ilahazs
      @ilahazs ปีที่แล้ว

      It's Fira Code or Fira Mono If I'm not mistaken.

  • @MustaphaHamoui
    @MustaphaHamoui ปีที่แล้ว

    I was so excited about this tutorial. But Laravel moved to Vite and now, after trying so many things (trying vite, then trying migrating to mix) and wasting so many hours, I give up. I just can't get arround to even starting with Inertia... What a bummer...

    • @Laracastsofficial
      @Laracastsofficial  ปีที่แล้ว +2

      What's the roadblock? You can use Inertia with Vite or Mix.

    • @Mark1_
      @Mark1_ ปีที่แล้ว +1

      @@Laracastsofficial When I make a new inertia vue project I get a blank screen

    • @MustaphaHamoui
      @MustaphaHamoui ปีที่แล้ว +1

      @@Laracastsofficial Thank you for responding... I found another tutorial on youtube for Installing inertia on Vite Laravel , and now I'm proceeding with this tutorial

    • @justianspijkerbosch7584
      @justianspijkerbosch7584 ปีที่แล้ว

      @@Mark1_ Problem is probably that you don't run npm run dev ;)

    • @Mark1_
      @Mark1_ ปีที่แล้ว

      @@justianspijkerbosch7584 I figured it out, the inertia docs are made with Mix (and Laravel uses Vite by default now) in mind and I copied and pasted blindly kekw

  • @rodrigolopez5601
    @rodrigolopez5601 ปีที่แล้ว

    why webpack.mix.js dont appear to me :(

    • @DioRatar
      @DioRatar ปีที่แล้ว

      me too

    • @ilahazs
      @ilahazs ปีที่แล้ว +1

      They updated the structure, and changed it into vite.

    • @bozzistef
      @bozzistef ปีที่แล้ว

      Webpack is outdated, Vite is the new bundler, faster and easier to use

  • @alexandergeorgesquire220
    @alexandergeorgesquire220 18 วันที่ผ่านมา

    Why do i pay for laracasts when they are all free on youtube...

    • @ilyesmilyesm2576
      @ilyesmilyesm2576 15 วันที่ผ่านมา

      They aren't "all" free on yt

  • @xuluwarrior
    @xuluwarrior ปีที่แล้ว +8

    For me The Filtering section didn't work as described with vue3 / vite. The key was to use the router function:
    import Pagination from "../Shared/Pagination.vue";
    import { ref, watch } from "vue";
    import { router } from "@inertiajs/vue3"; // use router
    defineProps({ users: Object });
    let search = ref("");
    watch(search, (value) => {
    router.get("/users", { search: value }, { preserveState: true, preserveScroll: true, replace: true });
    });