4 Packages You Need in ANY Laravel Project

แชร์
ฝัง

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

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

    Just added laravel query detector and followed all its prompts - noticeable performance improvement! Thank you so much for this!
    Reading the comments and I can see several other packages I am going to have to check out!

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

    I think Laravel Telescope is very helpful package

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

    Thanks Povlas. Installed the debugbar and the query detector and one simple index page went from 130+ queries to 8. Thanks for your recommendations and all you do for Laravel community / developers..

    • @majid-mahmoudi
      @majid-mahmoudi 2 ปีที่แล้ว

      🤣🤣

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

      130+ queries
      Damn what does it do

    • @liamvictor
      @liamvictor 2 ปีที่แล้ว

      @@yungifez It created the index of a business directory. It pulled in each category, how many sub categories, and the number of businesses in each.
      Easy problem to walk into with Laravel, but also very easy to solve!

    • @yungifez
      @yungifez 2 ปีที่แล้ว

      @@liamvictor laravel job security 😂😂

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

    for multilingual project:
    composer require astrotomic/laravel-translatable
    composer require codezero/laravel-localized-routes

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

    That debugbar is a life saver!
    I had one query that took more than 20 seconds and I couldn't figure out why because I did all my with statements but there's a difference between doing the with filtering in the models VS in the with statements itself.
    Now it takes 180ms!
    I created my own package that just creates an admin account with default values or with env overrides, very useful when you're running migrate fresh many times in your development process.

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

      So which is the faster way?

    •  ปีที่แล้ว

      @@HashimAziz1Let the database do whatever it can. Filtering in the database should be the fastest, i expect.

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

    Good one, but you need to mention the most powerfull package for me on every laravel project, which is Laravel Telescope :)
    it can be used to monitoring your project like Queue, Jobs, Request, Response and etc

    • @naturallifenow
      @naturallifenow 2 ปีที่แล้ว

      The problem with Telescope Laravel Package is due to It save all info in database growing faster your size. Would be necessary create a cron job only to prune the database telescope records. Because of that, I prefer Clockwork Package. It has same resources, but It save the informations using json files that can be easily deleted.

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

    Very helpful video sir. I was looking for Laravel DB backup, and I got from your video.

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

    4:47 alternatively, you can enable Model::preventLazyLoading() in your service provider if you're using Laravel 8+.

    • @naturallifenow
      @naturallifenow 2 ปีที่แล้ว

      I also thought about it and replace laravel debugbar with clockwork. Debugbar is not for API Rest.

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

    I would like to ask u about your thoughts on how to handle scalability with Laravel. I think is a good topic for a video.

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

    I consider using Spatie Laravel-permission and Yajra Datatable package in every laravel project I am working on

  • @TheCodeholic
    @TheCodeholic 2 ปีที่แล้ว

    Hi Povilas,
    Thanks for the video. It's very helpful.

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

    Hi Laravel Daily. Your videos are great, and they're very educational. I do have Laravel experience, but I can't seem to find any sort of beginner tutorials on your channels though. The main reason for me to look those up were to improve my code quality from the very basics, essentially. Maybe if you don't have those, it would be an idea to start from the beginner to give new Laravel programmers a great start to their code?

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

      My tutorials are not for beginners, indeed.
      I have basics in this free course: laraveldaily.teachable.com/p/laravel-for-beginners-your-first-project

  • @peterson.associates
    @peterson.associates 3 ปีที่แล้ว +1

    Thank you from Alaska!

  • @lpdrummerboy
    @lpdrummerboy 3 ปีที่แล้ว

    Great video! I'm definitely going to be trying these packages out.

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

    Thank you this is very helpful. The letter combination eu in the Dutch language is pronounced same as ö in German.
    So you almost got Barry's name right, but it was a very good attempt.

  • @kickass1179
    @kickass1179 3 ปีที่แล้ว

    thanks for this article, im gonna try the first 3

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

    Nice one, didn't know about Spatie\Backup, nice addition

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

    Great Tips, Thankyou

  • @altynbekmamasadykov4526
    @altynbekmamasadykov4526 3 ปีที่แล้ว

    Great video again. Thank you from Bishkek!

  • @adebajooluwaseyi2124
    @adebajooluwaseyi2124 3 ปีที่แล้ว

    Thank you from Lagos, Nigeria

  • @nicolas.chauvet
    @nicolas.chauvet 3 ปีที่แล้ว

    Yet another very usefull review. Query detector is awesome. Thanks a lot!

  • @edunwa3679
    @edunwa3679 2 ปีที่แล้ว

    This is really helpful

  • @habetech
    @habetech 3 ปีที่แล้ว

    Thanks for advice !

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

    Very helpful video as always. Does N+1 query detector hamper the productivity with all those browser alerts? Is there a way for it to show helpful messages someplace else like browser console or integration with debugbar?

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

      I think that's the whole point - to show it "in your face", so you would fix them immediately :) Otherwise, you can use Debugbar.

  • @yuri0001
    @yuri0001 2 ปีที่แล้ว

    Voyager is great too

  • @nobnobnobnob
    @nobnobnobnob 3 ปีที่แล้ว

    I'm a Java Dev and new to Laravel. I chose Laravel because PHP is easier to setup in my Web Hosting(due to limited Linux access). Laravel is very efficient in Scaffolding, but very easy to abuse. I love Laravel Daily(and learned most of the things here). But I notice that Logics are usually coded in the Controller, like other Laravel tutorials do. I've come from a practice where Controllers should only accept web request, then probably pre-handling and validation, then let another Service class do the rest. Like CRUD, and other complicated business rules stuff. I'm not sure if this pattern is actually a concern for PHP developers.

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

      It is. You can read more about the Service Controller pattern in Laravel. There's a video on it on this channel

    • @nobnobnobnob
      @nobnobnobnob 3 ปีที่แล้ว

      @@reubenfrimpong Thank you. Gonna check it out.

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

    Hi,
    I just watched your video. I would like to know if there is any equivalent to debugbar or query-detector when I fully work on an API ? I didn't find any solution to monitor queries when completely working by API.
    Keep going, love ur vids ;

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

      We've recently published this list of tools: laraveldaily.com/post/laravel-eloquent-tools-debug-slow-sql-queries

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

    The most useful package when you are working on a team is
    friendsofphp/php-cs-fixer
    This package can automatically fix the code style of your whole project with one command.

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

    Great tips man.. I would love to have a video on processing thousands of requests per second in laravel and load balancing.. Hope to see this soon.

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

      This is too individual to shoot videos about, depends on a lot of factors - your server stack, what your requests are actually doing, etc. For now, planning to shoot videos about coding, not about configuring servers.

  • @devferas
    @devferas 3 ปีที่แล้ว

    Thanks for this useful video, but for first problem "generat eloquent functions" you can add #query() function like this "User::query()->..."this function will generate eloquent :)

    • @crystoline
      @crystoline 3 ปีที่แล้ว

      Yes I agree with you. I do this too.
      But you may consider using the package while working on old laravel project.

  • @AndreasFelix
    @AndreasFelix 3 ปีที่แล้ว

    With the first ide helper I get the error in that any model is defined twice. but besides this nice selection .

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

    my problem with ide helper models is that if i use it then phpstorm tells me on each model that "other declaration of class User exist at _ide_helper_models

    • @lubje
      @lubje 3 ปีที่แล้ว

      From the laravel-ide-helper github page: "Alternatively using the --write-mixin (-M) option will only add a mixin tag to your Model file, writing the rest in (_ide_helper_models.php). The class name will be different from the model, avoiding the IDE duplicate annoyance."

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

      @@lubje thank you

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

    Thanks for the video
    I have VueJS separate frontend and connected to backend using api
    how can i use Laravel debugbar ?

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

      Use Laravel Telescope instead. Will probably shoot a separate video on it, probably.

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

      Check out Clockwork

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

      You can but it's clunky. I was doing this until I switched to Clockwork. It works much better for API-driven projects, especially when you install the Chrome/Firefox extension.

    • @redayoub
      @redayoub 3 ปีที่แล้ว

      @@LaravelDaily Thank you I tried it and it is awesome

    • @redayoub
      @redayoub 3 ปีที่แล้ว

      @@GraxS thank you for the suggestion

  • @DanielŚmigiela
    @DanielŚmigiela 3 ปีที่แล้ว +3

    Hi :D Greetings from Poland once again :)

  • @cardboarddignity
    @cardboarddignity 3 ปีที่แล้ว

    Spatie/backup: why, if you could configure unix cron to run at specified time abd put those files outside of the webserver directory?

  • @damilolaadekoya7957
    @damilolaadekoya7957 3 ปีที่แล้ว

    can laravel debug bar be used to measure API's performance or what tool can I use to measure laravel API performance

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

    Here I am always present with my daily LIKE to your video 👍

  • @DanielDW69
    @DanielDW69 2 ปีที่แล้ว

    What are your thoughts on Laravel sentry?

    • @LaravelDaily
      @LaravelDaily  2 ปีที่แล้ว

      Sentry.io? Good thoughts!

  • @ramadhanbridge97
    @ramadhanbridge97 3 ปีที่แล้ว

    Thanks , do u have advanced course on laravel relationships?

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

      Yes, it's here: laraveldaily.teachable.com/p/laravel-eloquent-expert-level

  • @belce1982
    @belce1982 3 ปีที่แล้ว

    Thanks as always!

  • @richardhoyle7778
    @richardhoyle7778 3 ปีที่แล้ว

    I just tried to do the php artisan backup:run and I am getting a error: Backup failed because The dump process failed with exitcode 1 : General error : '"mysqldump"' is not recognized as an internal or external command,
    operable program or batch file.

  • @yoho403
    @yoho403 3 ปีที่แล้ว

    Don't know if anyone else ahs the same issue but currently for me Laravel debug bar breaks my ajax, has happened on widnows and ubuntu for me

  • @lloricode
    @lloricode 3 ปีที่แล้ว

    I just use laravel/telescope instead of debugbar, so able to check queries in remote staging

    • @lloricode
      @lloricode 3 ปีที่แล้ว

      also i use fruitcake/laravel-telescope-toolbar that uses telescope result,

  • @mackynyxz
    @mackynyxz 3 ปีที่แล้ว

    Nice. thanks for the infos

  • @lucassequeira7193
    @lucassequeira7193 3 ปีที่แล้ว

    can you make video using react with laravel?

  • @Priyankmotivaras
    @Priyankmotivaras 3 ปีที่แล้ว

    What about L5moduler?

  • @m.Baobaid
    @m.Baobaid 3 ปีที่แล้ว

    Can you please make a video in how to count all current online users in the site, and show it as a number?

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

      I would use Google Analytics for that.

  • @Lucas-mu5no
    @Lucas-mu5no 3 ปีที่แล้ว

    Awesome vídeo!

  • @VonsoGT
    @VonsoGT 3 ปีที่แล้ว

    what about managing email?

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

    very good! tks

  • @sakthivel-kl1ws
    @sakthivel-kl1ws 3 ปีที่แล้ว

    Hi May I check with u that if existing package failed to update, if failed then is it going to break application or its works with previous version. Please advice thank you

    • @LaravelDaily
      @LaravelDaily  3 ปีที่แล้ว

      Depends on the package and the situation.

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

    Hello sir, We want a video about" how to cofigure a laravel project on shared hosting " I have research and saw some video, They told that move index file from public to root. But l think its not a good idea. And I believe yoi will tell us a best way to configure/upload laravel project on shared hosting. Please give this video as a next daily video.😍..
    Please sir.

    • @JayP787
      @JayP787 3 ปีที่แล้ว

      You are supposed to store all files in the root directory for security purposes. If not, you'll have to add a few lines to your .htaccess in order to prevent access into your .env since you'll be exposing it to the world by placing the project inside public_html. As far as file/folder structure, you can either tell Laravel to change from 'public' to 'public_html' or change your apache/nginx public's directory. This is something you'd have to configure on any web server for any PHP framework, not just Laravel...

    • @tamimikbal28
      @tamimikbal28 3 ปีที่แล้ว

      @@JayP787 I have write some redirect code on root htaccess as well with help of the stackoverflow. But its not working for me.

  • @mansoorkochy
    @mansoorkochy 3 ปีที่แล้ว

    Good luck
    Thank you!

  • @joejohn.
    @joejohn. 3 ปีที่แล้ว

    Does that query detector package cause this error for anyone else? Illuminate\Container\Container::bind(): Argument #2 ($concrete) must be of type Closure|string|null

  • @shofada
    @shofada 3 ปีที่แล้ว

    Thanks. Very helpful. But where do you configure or specify the external server to backup to?

    • @LaravelDaily
      @LaravelDaily  3 ปีที่แล้ว

      In config/filesystems.php as a disk

  • @imamhsn195
    @imamhsn195 3 ปีที่แล้ว

    Thank you Sir

  • @alila3883
    @alila3883 3 ปีที่แล้ว

    Very helpful Thx Povilas

  • @GergelyCsermely
    @GergelyCsermely 3 ปีที่แล้ว

    Thank You!

  • @MarekLichtner7
    @MarekLichtner7 3 ปีที่แล้ว

    Tip for video: Why do you prefer debugbar instead of telescope + laravel-telescope-toolbar?

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

      Why do you prefer telescope + laravel-telescope-toolbar instead of Clockwork + Clockwork Chrome/Firefox extension? ;-)

  • @hemantbhardwaj17
    @hemantbhardwaj17 3 ปีที่แล้ว

    N+1 looks quit interesting thanks

  • @delamberty
    @delamberty 3 ปีที่แล้ว

    Does this work with sublime text?

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

      Not sure, please try and tell us all.

  • @chhiethearith9525
    @chhiethearith9525 3 ปีที่แล้ว

    Thank you big ):

  • @dvs149
    @dvs149 3 ปีที่แล้ว

    how install old version laravel(like 5.5) in mac m1

    • @aculz
      @aculz 3 ปีที่แล้ว

      use docker if you coudnt get version you want, it can be help

  • @rifkiardiansyah616
    @rifkiardiansyah616 3 ปีที่แล้ว

    Thanks sir

  • @TIGER-ql9jj
    @TIGER-ql9jj 3 ปีที่แล้ว

    How to solve that "Not enough memory resources are available to process this command" While installing packages

    • @DennisZiolkowski
      @DennisZiolkowski 3 ปีที่แล้ว

      Increase memory_limit in your php.ini

  • @adiryad
    @adiryad 3 ปีที่แล้ว

    Laravel telescope is the most needed package.

  •  3 ปีที่แล้ว

    You forgot Magic Test 😝

  • @ahmadrio
    @ahmadrio 3 ปีที่แล้ว

    terima kasih

  • @surflaweb
    @surflaweb 3 ปีที่แล้ว

    great! bro

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

    धन्यवाद श्रीमान

  • @victoronwe906
    @victoronwe906 3 ปีที่แล้ว

    Great job! Please make a tutorial on how to web scrape SPA like Amazon, thanks.

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

    Clockwork

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

    spatie media-library

  • @Vlad73125
    @Vlad73125 3 ปีที่แล้ว

    Im working with laravel about 2 years and i can tell that ide helper plugin/package is a horrible thing for development on my opinion. Maybe it will be useful for newbie

  • @paka7038
    @paka7038 3 ปีที่แล้ว

    Laravel IDE Helper
    Laravel debugbar
    Laravel n+1 query detector
    Spatie laravel backup

  • @xuandungho
    @xuandungho 3 ปีที่แล้ว

    like me :D but thanks u sir

  • @eddydarkenb1967
    @eddydarkenb1967 3 ปีที่แล้ว

    Thank you for the info.

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

    Thanks sir