Romain

Member Since 7 Years Ago

Experience Points
80,510
Total
Experience

4,490 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
1187
Lessons
Completed
Best Reply Awards
6
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

  • Community Pillar

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

Level 17
80,510 XP
Apr
15
1 month ago
Activity icon

Replied to How To Get The Key Based On Values?

Thanks for your reply, you have the same as @corvs but his is a one liner and that would be my preference, so I will make his the best answer.

Activity icon

Replied to How To Get The Key Based On Values?

Yep I'll do that. Just tested and it works as expected. I'll set your first reply as the best answer, please add ->first() in it.

Thanks again

Activity icon

Replied to How To Get The Key Based On Values?

no, it won't be possible

Activity icon

Replied to How To Get The Key Based On Values?

Thanks for that, it's an interesting approach.

Could there be another way of going about it from the beginning? Maybe my array is wrong. The point is that I want to have a "top value" (english) for multiple "lower values" (countries). But the array will grow overtime, so I can set it in stone.

Activity icon

Started a new Conversation How To Get The Key Based On Values?

Hey,

say that I have this:

$array = [
	'english' => [
		'USA',
		'Canada',
		'Australia'
	],
	'spanish': [
		'Spain',
		'Venezuela'
	]
];

How can I simply, using collect() or Arr::, get english from USA?

Thanks

Apr
12
1 month ago
Activity icon

Replied to Help For Hack? On Forge/Digital Ocean

Thanks for your reply,

looking at the logs, I see quite a lot of attempts with generic username: minecraft, user, sysadmin, testsite.... Besides root and forge users I also see a valid connection from a user smmsp (for 1 minute) is that normal? Quite a few login attempts from the same IP address on the same day. Im not sure how to detect a successful login by someone. They would have to use a proper user/password combination I assume, and that would reflect as a normal log entry (I guess?)

As for permissions they're the default ones when provisioning a server with Forge, I haven't changed anything. So the forge folder has: drwxr-xr-x => 755? 757?

And finally, yes SSH is the only entry point, no FTP. Basic Forge provisioning.

Activity icon

Started a new Conversation Help For Hack? On Forge/Digital Ocean

Hey there,

trying to checkout my website after the weekend I landed onto the 500 error page. Quickly looking at Forge's dashboard I realised that an error was appearing: No more space on device...

I thought that was strange as I didn't have an influx of users/data over the weekend. I checked on Digital Ocean the app's usage and yes, the disk usage had been slowly but consistently increasing since the 4th of April. Nice linear slope, until it reached 100% on the 9th. Strange again.

I logged in via ssh, df -h and then yes, the partition was 100% used. Little ls -la in the current folder, and I find myself facing a lot of small files of either 0b or 4343224 bites exactly. All with random names, and in the middle, the regular default folder and my app's name folder. As I couldn't even run a search I removed all these files (painstakingly) and manage to free up 300Mb. Ok now I could restart the server, MySQL and my app works again. But for how long?

I also notice in the df -h command, 6 /dev/loop0-6 small partitions. Are these supposed to be there in a Forge provisioned server?

Now my questions are:

  • How can I find out what happened?
  • How can I prevent it from happening again?
  • How can I find where is the rest of the disc usage? Because I was barely at 35% usage before, for the past 6 months.

Quick thing, my last push was in March 12th, so I don't think it's a coding issue.

Thanks for any help that can be provided.

Mar
26
1 month ago
Activity icon

Replied to Eloquent Relationship Works With Seeder, But Not With Form Entry.

In that case, maybe the form is the issue as well as the controller. Are you sure that the data is saved properly in the database? With the proper IDs being linked?

Activity icon

Replied to Eloquent Relationship Works With Seeder, But Not With Form Entry.

Yeah sure we can try that. Maybe simply a Github repo would be enough

Mar
25
1 month ago
Activity icon

Replied to Eloquent Relationship Works With Seeder, But Not With Form Entry.

Hey,

a few questions:

  • What do you mean by "brings up"?
  • Can you show how you actually retrieve the data in both cases, if that's the issue?
Feb
24
2 months ago
Activity icon

Replied to Pressing Space Bar When Watching A Video

Thanks for your reply. I did mention the autoplay feature, therefore I don't touch the video before trying the space bar. I would want that to be automatic.

As for Youtube, I just tried again, simply starting a video and pressing space pauses the video. So I guess the video is automatically focused, maybe it would be something to look into for Laracasts if Jeffrey is willing :D

Activity icon

Started a new Conversation Pressing Space Bar When Watching A Video

Hi,

I usually watch videos with autoplay, love it, I'm a binger. However I think I'm also too much of a Youtube binger. Meaning when I see a video starting I expect the space bar to be the play/pause button. However on Laracasts when you load a video, if you press on the space bar, you scroll to the teacher's section right below the video. It's slightly frustrating.

Was that intended behaviour? Could it be possible to have the space bar being the default play/pause button?

Thanks

PS: I know that once you've clicked once on the video to pause or play it, the space bar then becomes the play/pause trigger

PS2: On Chrome, for the past few years :D

Activity icon

Started a new Conversation How To Calculate Job Bandwidth Consumption?

Hey there,

if I have a job (or simply a request) that fetches resources from another website, say another API or RSS feed or even a full HTML page. How can I calculate how much bandwidth is used?

I wouldn't want to blow up my hosting bandwidth, so if I can calculate that and potentially put alarms it would be good. I know I can setup alarms in AWS but I'd like my app to be in charge of that.

Thanks

Feb
05
3 months ago
Activity icon

Replied to Nova Sidebar Submenu

Sorry I don't mean the current user but I want to display all users that are invalid but have details associated with them.

Activity icon

Replied to Nova Sidebar Submenu

Im so close, I just need a way to access the current user ID within the static method indexQuery, would you have any pointer @bugsysha ? Knowing that the relationship "details" on "User" points to a table that has a column "user_id".

public static function indexQuery(NovaRequest $request, $query)
    {
        return $query
                ->where('valid', false) // << That works fine
                ->with('details', function($query) {
                    $query->where('user_id', '=', (new self)->title()); // <<< no idea. tried self::$title, static::title()
                })
                ->limit(100);
    }
Activity icon

Replied to Nova Sidebar Submenu

I guess that would be a solution. I will try that, thanks

Activity icon

Started a new Conversation Nova Sidebar Submenu

Hi there,

say I have a URL for a filtered resource. I know I want to access this filter more than the default view of the resource, is there a way to add a submenu to that resource with that URL?

I would want something like:

Users
 - Unverified Users (<< this one has the link to the filtered resource)

Thanks

Nov
18
6 months ago
Activity icon

Replied to Laravel Docs Un-selectable?

Im still on Catalina.

Activity icon

Replied to Laravel Docs Un-selectable?

oh wait a minute! It's not that I can't select, but the highlight colour is so subtle that I couldn't see it. All good. Still a bit weird feeling but copying works

Activity icon

Started a new Conversation Laravel Docs Un-selectable?

Hi there,

totally strange thing but, can you guys highlight and copy snippets from the Laravel docs? I used to be able to, but today I can't, I tried latest Chrome and latest Firefox on Mac.

I can select the explanation text no problem, but not the snippets.