oroalej

oroalej

Member Since 1 Year Ago

Experience Points
6,310
Total
Experience

3,690 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
19
Lessons
Completed
Best Reply Awards
3
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 2
6,310 XP
Nov
26
1 week ago
Activity icon

Started a new Conversation Create Request With File In Controller

Hi all,

How can I create a Request() with file inside Controller Currently, I'm doing the code below but the $request->file('video') returns null;

use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;

....

$path =  new UploadedFile( $tempPath, $formattedFileName );


$request = new Request( [
    // Some Variables..
    'a_file' => $path
]);

dd($request->file('a_file'));

Nov
20
2 weeks ago
Activity icon

Replied to Vue Has Some Delay ?

Never know nextTick can be used as delay. Thanks!

Nov
01
1 month ago
Activity icon

Started a new Conversation PHPStorm Live And Code Templates

Hi Guys,

I'm just new in using PHPStorm and these two feature really helpful in development. Can you share your templates that you used in laravel/vue?

I really appreciate it. Thank you!

Sep
24
2 months ago
Activity icon

Replied to Why Laravel Can't Find PHP-FFMpeg/PHP-FFMpeg Package?

@shideichis did you follow from step 1 to 3?

Sep
10
2 months ago
Activity icon

Replied to Merging Two Collections Based On Matching Key Values

@suo You can do map collection in here:

$someCollection->map(function($item) {
    $item->lead_details => [] // SomeDataOrConditions

    return $item;
});

Activity icon

Replied to How To Access 1:M Relationship Through M:N?

I want to access the Child's toy ratings with something like this Child::find($id)->toys()->ratings

$child = Child::with('toys.ratings')->find($id);
Activity icon

Replied to How To Get Total Number Of Posts Made By All Users

Your relationship should be like this.

Post.php


public function news() {
  return $this->belongsTo(News::class);
}

News.php

public function posts() {
  return $this->hasMany(Post::class);
}

Then do this:

$news = News::withCount('posts')->get();
Activity icon

Replied to How To Underline Task When Click On It And It Should Be Saved In Database As Completed

Maybe also try learning vue.js? It will make your life easier I promise you.

Activity icon

Replied to More Cleaner Way

Why not create a column in user table that will save the total points? it will only update whenever a user do comment or questions?

Activity icon

Replied to Restrict Access To Website By Location.

Is the GPS technology that accurate that it can detect where you are with precision accuracy?

Jul
16
4 months ago
Activity icon

Replied to GroupBy And Chunk - How Do I Go About It?

Why not start your query in user table?

Like this


  $result = User::with('performances')
        ->get()
        ->each(function($student, $key) {
        // $total_mark = $student->performances->sum('marks') / $student->performances->count();
            // Do some of your config.
        });

In the each() , when you do $student->performances all the test of the user will be listed.

Activity icon

Replied to Can Laravel Handle More Than 10K User At Same Time ?

It will depend on your server configuration, how optimize is your websites.

Activity icon

Replied to How To Show Count Of All Subject With Slug From Post Table?

@mariohbrino If the folder of Post and Subject are in the same folder. You can just call:


public function posts() 
{
   return $this->hasMany(Post::class);
}

Much cleaner and helpful if you are using IDE.

Jul
14
4 months ago
Activity icon

Started a new Conversation Eloquent Sync Relationship Create When Not Exist

For example I have an array of ['1', '2', 'Mob Psycho 100'] where as the items 1 and 2 are ids. However the Mob Psycho 100 is new item.

Is there an easy Laravel way to insert the mob psycho and sync it to it's relationship?

Currently, the sync() is only working for the existing data.

Jun
16
5 months ago
Activity icon

Replied to Upwork Clone That Is Build In Laravel?

@devfrey Client want it quick and they doesn't want to build it from scratch cuz it will take time. :(

Jun
14
5 months ago
Activity icon

Started a new Conversation How Do You Structure (Folders) Your Project?

Hi All,

Can you share how you structure your laravel folder? like, how do you divide files to different folder. etc..

Really appreciate it.

Activity icon

Started a new Conversation Upwork Clone That Is Build In Laravel?

Do you know any Upwork clone that is build in Laravel?

Jun
11
5 months ago