RaduCruceana

RaduCruceana

Member Since 2 Years Ago

Bucharest

Experience Points 6,670
Experience Level 2

3,330 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 65
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

29 Dec
5 months ago

RaduCruceana left a reply on Two Database Connections Defined But Not Working

If you just put dd($posts); after $posts = Post::all(); what you get?

RaduCruceana left a reply on Two Database Connections Defined But Not Working

As @shez1983 already said, From the controller you send $posts to the view, and in view (in the @foreach loop) you try to access $post is an "s" missing. I always reset views with

php artisan view:clear

without problems.

22 Dec
6 months ago

RaduCruceana left a reply on Sweetalert SWAL Is Not Defined - After NPM Install

I had the same problem, it worked after: window.swal = require('sweetalert2'); AND npm run prod or npm run dev

18 Nov
1 year ago

RaduCruceana left a reply on LeftJoin In Eloquent?

Thank you @Snapey ! Your answer solved my primary question! So, If I really need a left join I will use QB, because such relationship is not implemented by Eloquent? Sorry to bother you, but I just want to clarify things in my mind . I'm and old fashioned SQL dinosaurus :)

RaduCruceana left a reply on LeftJoin In Eloquent?

This mean that I can use Modell::AnyQuerryBuliderMethod ?

RaduCruceana left a reply on LeftJoin In Eloquent?

Thank you @jlrdw ! Do you have a little time for a little more light? :)

Best regards from Bucharest!

RaduCruceana started a new conversation LeftJoin In Eloquent?

Hello dear friends,

I'm beginner in Laravel, I'm using 5.5 version.

Is there a method leftJoin in Eloquent ORM? I know there is one on DB facade, but if I want to use Eloquent only is there a leftJoin method?

Let's suppose, as an simple example, I have a model CarBrand and another one CarModel. CarBrand have a relationship type hasMany with CarModel, and CarModel belongsTo CarBrand.

Suppose I want to find CarBrand's id's without CarModel corespondence. I found on stackOverflow, several responses like this:

 CarBrand::leftJoin('CarModelTableName', function($join) {
      $join->on('CarBrandTableName.id', '=', 'CarModelTableName.carBrandId');
    }) ->whereNull('CarModelTableName.carBrandId')->first();
     

I have checked and it does function as a left join :)

But in this case is ::leftJoin an Eloquent method or silently it goes to DB facade? I can't find any for leftJoin in Laravel 5 official docs other than DB facade. Any links would be appreciated.

Hope I was clear, Thank you for your attention.

27 May
2 years ago

RaduCruceana left a reply on Where Are You All From?

Bucharest Romania :)

RaduCruceana started a new conversation MS SQL Filestreaming Is Implemented In Laravel?

Hello, I'm less than beginner in Laravel, and this is my first message. I have a little project made in the past 2 months. I want to save some .pdf dynamically generated files (with domPDF) in a MSSQL Database with Filestream data enabled. Does Laravel offer a way to do this?

Thank you for your time, Radu