I built a pizza tracker with Laravel, React, and Inertia | Full Stack Tutorial

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 103

  • @aschmelyun
    @aschmelyun  Рік тому +21

    Here's the repo for anyone interested in the final code: github.com/aschmelyun/dices-pizza

  • @antomac1511
    @antomac1511 9 місяців тому +8

    Great tutorial man, learned a lot. Hard to find react/inertia tutorials of this quality, keep them coming!

  • @RTCDigitalS
    @RTCDigitalS Рік тому +6

    Glad you posted this a week ago. It's very difficult to find react inertia tutorials as they are usually made with Vue. I hope I can learn from if. Thanks

  • @xThree65x
    @xThree65x 7 місяців тому

    This is top notch content! I feel like using Laravel, Inertia and React gives you the best of both worlds to develop with! More tutorials like this would be welcomed!

  • @B3DFire
    @B3DFire Рік тому +3

    I'd love to learn how to create a demo like you have with such fluidity

    • @aschmelyun
      @aschmelyun  Рік тому

      It's a LOT of editing, trust me haha. The original content for this video was close to 5 hours of recording.

  • @oyewalekayode2725
    @oyewalekayode2725 Рік тому +2

    What a nice job from you andrew. No doubt you're a great tutor. I will be waiting for a real estate property listing site from you andrew one of this days.

    • @aschmelyun
      @aschmelyun  Рік тому +1

      Thanks for the complement! I'll add real estate property listing site as one of my backlog items, that sounds like a fun idea for a full-stack app. What would you like to see it built in? React, Vue, Inertia, something else?

    • @moazsaid3417
      @moazsaid3417 Рік тому

      ​@@aschmelyuninertiajs vue

    • @oyewalekayode2725
      @oyewalekayode2725 Рік тому +3

      laravel and vue

  • @tazme4914
    @tazme4914 6 місяців тому

    Its just wow , you just created a CRUD applicaiton using Laravel+react+inertia in an 1 hour , im exited to try this now

  • @Icodestuff
    @Icodestuff Рік тому +3

    Great video as always!
    Certainly going to take some inspiration from the "I built this" series as I've been wanting to do something similar

    • @aschmelyun
      @aschmelyun  Рік тому

      Thanks a ton! These videos are always fun for me because they scratch an itch to try out new things or make weird projects. Definitely try it out!

  • @NathanBudd
    @NathanBudd 20 днів тому

    This is a very cool video! Not much Inertia / React content out there. I used it as a refresher before Inertia 2.0 is released soon.
    One thing I did differently was deicded to eager load the 'user' (chef) on the Pizza model, but returned an ApiRecource with just the `id`, `size`, `toppings`, `status`, `chef` (whenLoaded).

  • @carlosmontiel7078
    @carlosmontiel7078 6 місяців тому

    Feeling good watching new videos!! Nice.

  • @dannydelgado9820
    @dannydelgado9820 Рік тому +2

    Awesome Andrew! Thanks for sharing this

  • @kwasiezor1630
    @kwasiezor1630 8 місяців тому +1

    Very nice project. Learning good things. Thanks for sharing.

  • @tmanley1985
    @tmanley1985 6 місяців тому

    This is possibly the most well earned sub this year. Well done.

  • @desmonddose
    @desmonddose 10 місяців тому +1

    My first time learning Interia. Thanks for awesome overview.
    More of Laravel, React, Interia projects please.
    for conditional in PizzaStatus,jsx,
    these Tailwind classes "first:rounded-l-full last:border-r-0 last:rounded-r-full"
    can replace two conditions below:
    if (index === 0) {
    baseClasses += " rounded-l-full";
    }
    if (index === statuses.length - 1) {
    baseClasses = baseClasses.replace("border-r-2", "rounded-r-full");
    }

  • @ronanjwhelan2703
    @ronanjwhelan2703 Рік тому +1

    Thanks Andrew - love your work!

  • @pjr
    @pjr Рік тому +2

    So clear and easy to understand. Thanks!

  • @neon-gi5tb
    @neon-gi5tb Рік тому +1

    Great video!
    The props in the Table component are added by you? I couldn't find it on Flowbite.

  • @rcr786
    @rcr786 8 місяців тому

    Great tutorial and easy to follow!!. Thanks!

  • @daveb8795
    @daveb8795 Місяць тому

    This was great. Thank you!

  • @Somcoders
    @Somcoders Рік тому +1

    That was smooth and insightful!
    Thank you Andrew.

  • @oluwasegunibidokun3910
    @oluwasegunibidokun3910 6 місяців тому

    Nice tutorial Andrew. Well done. How do you effect changes in the frontend after deployment to production?

  • @ConstAxer
    @ConstAxer 6 місяців тому

    Great! thank you! It's fast jump into laravel+react.

  • @jkbullitt8986
    @jkbullitt8986 9 місяців тому

    Kudos!!! Great tutorial here! Thankyou👍

  • @elm-o4w
    @elm-o4w 6 місяців тому

    great tutoriel u gonna be famous one day ;)

  • @GianGamingMLBB
    @GianGamingMLBB 5 місяців тому

    I saw little issue, when you make it small screen, the pizza menu will not shown in the ResponsiveNavLink

  • @mkyg8871
    @mkyg8871 Рік тому +1

    Thank you so much for this.

    • @aschmelyun
      @aschmelyun  Рік тому +1

      No problem, I'm glad you liked it!

  • @literallyshane4306
    @literallyshane4306 6 місяців тому

    great video, really well explained. thank you

  • @xclampazzo
    @xclampazzo 8 місяців тому

    Awesome tutorial!

  • @devtube734
    @devtube734 Рік тому +1

    just amazing

  • @ergouwang3849
    @ergouwang3849 4 місяці тому

    Awesome,many thx!

  • @pkiorpes
    @pkiorpes 10 місяців тому +1

    great job
    it would be nice to have a dark/light switch and language/locale selector as well

    • @aschmelyun
      @aschmelyun  9 місяців тому

      Those are great additions! Might add them to an extra video later on

  •  Рік тому +1

    This is amazing

    • @aschmelyun
      @aschmelyun  Рік тому

      Thanks man, I'm glad you liked it!

  • @redouanebenbiga9148
    @redouanebenbiga9148 Рік тому +1

    my friend i m a laravel, react, react native developper and i never tought this way its even exist you did well to help us your great and i would like to see more video like a project built with inertia laravel and react , and i have 2 question : how we build the react app with this way , and can inertia work with react native thanks in advance really great video

    • @aschmelyun
      @aschmelyun  Рік тому

      You can just build out the React app for production by using `npm run build` and it'll bundle everything up as dist assets. For React Native though, that might be a bit tricky because of how tightly coupled the frontend components and backend is with this setup. For that, you might still have to stick to traditional API access.

  • @chandanm3308
    @chandanm3308 Рік тому +1

    Really Nice👍👌

  • @abhishekgupta5544
    @abhishekgupta5544 4 місяці тому

    Very nice video sir, can we use different theme in breeze with react.

  • @ka24det
    @ka24det Рік тому

    Will the getChefAttribute do a query for each pizza? n+1? Or is eloquent smart enough to not do that? I'm mostly back-end and have been avoiding any Inertia stuff but you make it easy to learn.

    • @aschmelyun
      @aschmelyun  Рік тому

      That's a great question, I'm like 90% sure that eloquent is smart enough to run a join in the query, but I'll have to make sure

  • @MuhammadAnas-w3o
    @MuhammadAnas-w3o 4 місяці тому

    Its a brilliant video please create a video for big laraevl inertia and reactr project and also guide use how to use websockets, echo in inertia and react

  • @aigars2225
    @aigars2225 8 місяців тому

    Good stuff, thanks

  • @carlosmontiel7078
    @carlosmontiel7078 6 місяців тому +1

    what extension is installed to see all the cool icons and models for react?

  • @cyberninja80
    @cyberninja80 7 місяців тому

    what text editor do you use ?
    very cool

  • @xThree65x
    @xThree65x 7 місяців тому

    Here is an odd question at the top for your tab when switching between pages for example it goes from "Dashboard - Laravel" to say "Order # - Laravel" Where is the "- Laravel" coming from...like how do you remove it or change it?

  • @piercegearhart
    @piercegearhart 5 днів тому

    53:05 You could of added overflow-hidden and something like relative to the parent and not worried about manually rounding both ends

  • @neverforget1575
    @neverforget1575 Рік тому

    Great vid, what's your thoughts on React Vs Vue in regards to the Laravel learning eco system? And a beginner getting started, thanks

    • @aschmelyun
      @aschmelyun  Рік тому

      If you're just getting started with frontend frameworks, Vue is definitely the way to go. Specifically the Options API (old Vue 2 style of writing components).
      Coming from an older JavaScript/jQuery background it makes more sense than React's JSX.
      From there, you can move to Vue 3's Composition API which I like better, and that kind of bridges the gap to current modern JS which can make learning React much, much easier.

    • @neverforget1575
      @neverforget1575 Рік тому

      Thanks for the reply, I have read on a few reddit posts that people are struggling to get jobs with Laravel and Vue and there are more openings in React. A lot of them said that they wished they used React from the start. Im just worried that React tutorials with Laravel are few and far between so may get stuck. just not sure what to choose, thanks@@aschmelyun

  • @GunniBusch1
    @GunniBusch1 6 місяців тому

    How „bad“ is it to not use the props for most of the data, to „reduce“ loading time by using tenstack router and skeleton?

  • @fuadagil
    @fuadagil 11 місяців тому

    Great videos. Btw i got no SelectInput components since installation. Can you provide link to the components code? Thankyou

  • @robchal7230
    @robchal7230 9 місяців тому

    your video is awesome

  • @gamertv1261
    @gamertv1261 Рік тому +1

    Thank you for this video. Can you write something using Native PHP please?

    • @aschmelyun
      @aschmelyun  Рік тому +1

      It's in my backlog! Hopefully I'll have a video out in the next month or two with a Native PHP app.

  • @BBB888BBB
    @BBB888BBB 5 місяців тому +1

    a lot of important parts of giving beginners the basic concepts was skipped ... we hope we can make use of your knowledge going forward ..thanks .

  • @RazvanTSibiu
    @RazvanTSibiu 11 місяців тому

    I used NextJS + API made in Laravel and it's pretty slow in development mode. Does Laravel + Inertia + React works much better?

  • @sakmaestro3852
    @sakmaestro3852 Рік тому

    Great video... sir is it possible symfony and react combination?

  • @Robot-x9u
    @Robot-x9u 3 місяці тому

    but what source-code editor you are using in this tutorial ?

  • @eryas1
    @eryas1 10 місяців тому

    I have form which has many dropdownList for cities and districts, user must select cities to fill the districts list.
    When I use route.visit(city/{cityId}/districts). Url page is changed after change the city while I render same page of the form.
    Why? What is the best way to do it?

  • @celebritydev1
    @celebritydev1 Рік тому

    Great tutorial.
    Do you have any idea on how to deploy a laravel inertia react ssr project to a shared hosting?
    Any suggestion would be appreciated.

    • @aschmelyun
      @aschmelyun  Рік тому

      Thanks! Deploying that stack to shared hosting is pretty tricky, as with ssr you'll need access to a terminal or supervisor to run the server rendering node app in the background.
      My suggestion would be to use something like Laravel Forge, or at the very least a cheap VPS like DigitalOcean or EC2.

    • @celebritydev1
      @celebritydev1 Рік тому

      @@aschmelyun Thanks for your reply.
      My first try was to use cron job but that didn't work as intended. The second step I took was to create a node js app and installed pm2 on the server but to no avail.
      I haven't tried laravel forge before. I would give it a try to see how it goes.
      Once again, thanks for the suggestion.

  • @nihongo_
    @nihongo_ 10 місяців тому

    thank u

  • @bye835
    @bye835 7 місяців тому

    how do i handle error when the access data is not valid.
    $token = VerificationOTP::where('token', $request->isd)->first();
    if (!$token) {
    return response()->json(['error'=> 'Token not found'], 404);
    }
    the error i get
    All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
    {"error":"Token not found"}

  • @rannieperalta2192
    @rannieperalta2192 9 місяців тому

    awesome

  • @justazizz
    @justazizz 4 місяці тому

    Im just curious, which IDE is this 🙃

  • @azad01_
    @azad01_ 9 місяців тому +2

    your solution for real-time is kill the resources of the server, it's much better using socket

  • @gouravjoshi953
    @gouravjoshi953 5 місяців тому +2

    How to remove ' - Laravel' from the title of the page?

    • @dApoTB
      @dApoTB 4 місяці тому +2

      Change the app name in config or env file.

  • @jusiprogramusi8826
    @jusiprogramusi8826 10 місяців тому

    Why do i get unable to locate file in Vite manifest whenever i create a new jsx file,
    Does anyobody have an idea why this is happening?

  • @javascriptforhumans
    @javascriptforhumans 4 місяці тому

    Instead of the setinterval here i use the pusher it's works great.

  • @ahmadabeer3523
    @ahmadabeer3523 Рік тому

    i installed ziggy with "composer require tightenco/ziggy" but the routes are always redirectionf me to another page

    • @aschmelyun
      @aschmelyun  Рік тому

      Huh, that's weird. What page are they redirecting you to?

  • @aem..
    @aem.. 4 місяці тому

    What vscode theme is it?

  • @alejandrogarcia..
    @alejandrogarcia.. Рік тому

    What code editor do you use?

    • @aschmelyun
      @aschmelyun  Рік тому

      PHPStorm with the MaterialUI Theme plugin

  • @abdulsiyadnp
    @abdulsiyadnp Рік тому

    Supeeeeeeerb ❤❤❤

  • @meaningmean
    @meaningmean 6 місяців тому

    Does it works with Svelte?

    • @meaningmean
      @meaningmean 6 місяців тому

      I forgot to say thanks!

  • @cmp-tata6484
    @cmp-tata6484 7 місяців тому

    Name of your editor

  • @muhammad_abir
    @muhammad_abir 8 місяців тому

    finally I found what I was looking for

  • @kullbetdah
    @kullbetdah Рік тому +1

    24:31

  • @iUmerFarooq
    @iUmerFarooq Рік тому

    Vue + Laravel

    • @aschmelyun
      @aschmelyun  Рік тому

      Vue + Laravel is my favorite stack, I have many more ideas using those two in the works!

    • @iUmerFarooq
      @iUmerFarooq Рік тому

      @@aschmelyun Sound great

  • @iUmerFarooq
    @iUmerFarooq Рік тому

    Nuxt + Laravel projects

  • @santos_prtv
    @santos_prtv 22 дні тому

    i am sooo Lost

  • @CoderSineNomine
    @CoderSineNomine 3 місяці тому

    if anybody thinks that i am mean well go ahead.. this is waste of time.. if you know laravel you don't need this, if you don't know you will not learn anything from it. because he passes everything without explaining. so why?

  • @9uifranco
    @9uifranco 7 місяців тому

    Great!
    26:10 $hidden and $appends works great but you could also do something like:
    Pizza::with(['user, id, name'])->get()
    This will append the user name to the pizza data.
    Note: you need to always put 'id' to make this work
    Note 2: Maybe it's with([user:id, name'']) - I don't remember exactly

  • @carlosmontiel7078
    @carlosmontiel7078 6 місяців тому

    Help
    PHP 8.3.4
    11.1.1
    Unable to locate file in Vite manifest: resources/js/Pages/Pizzas/All.jsx.