MThomas

MThomas

Member Since 5 Years Ago

Eindhoven, The Netherlands

Experience Points
138,890
Total
Experience

1,110 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
1054
Lessons
Completed
Best Reply Awards
64
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.

Level 28
138,890 XP
May
06
3 weeks ago
Activity icon

Commented on How To TDD Artisan Commands

Great lesson!

One question though. Now you faked the API call, you're no longer detecting changes in the API response through your tests. How would you manage this, do you make an other test that hits the API and imports the users, or checks if the API response is still the same as the faked one? Or do you use a different approach?

May
01
4 weeks ago
Activity icon

Replied to GET Parameters From API Routes Not Getting Detected

@abdulbaari can you still show your RouteServiceProvider? it might be prefixed there for some reason.

Activity icon

Replied to Faking API Calls From An Package

Can you show the code from your RiotApi class?

You faked a specific URL, are you 100% sure that the URL is exactly the same? you might try simplifying the fake.

Http::fake([
    'americas.api.riotgames.com/*' => Http::response($this->fakeMatchResponse(), 200),
]);
Activity icon

Replied to Default Datetime Value.

dit you check the server timezone? I think, you should set the timezone in app.php to the seame timezone as the timezone your server of machine is configured.

Activity icon

Replied to What Strategy Should I Follow For Role Assigning For User In My App?

You might research some of these packages (was the first google search for 'Laravel eCommerce'): https://medium.com/@stenalferd/10-best-laravel-ecommerce-packages-for-your-online-store-1da2743bdda8

As pointed out before, you will learn a lot from other packages. And take a look at several of the series here at laracast, check out this one about building a form, there is a section about roles there too (if i'm not mistaken): https://laracasts.com/series/lets-build-a-forum-with-laravel

Apr
02
1 month ago
Activity icon

Replied to Relation Between Two Models Not Working Out

Can you show us the Subreddit and Post models including the migrations?

Activity icon

Replied to Page Expired

did you add the CSRF field?

<form action="/user" method="POST">
	@csrf
	<input type="text" />
<form>

More: https://laravel.com/docs/7.x/csrf

Activity icon

Replied to Page Expired

you might want to shed some light on your setup. What url are you visiting, GET or POST, are you using XAMPP, Valet etc...

Mar
20
2 months ago
Activity icon

Awarded Best Reply on Laravel Forum Package

The laracast forum is build specifically for laracasts. Laracasts does have an excellent series on building your own forum: https://laracasts.com/series/lets-build-a-forum-with-laravel you will also learn a ton!

If you are specifically searching for a package you should check Flarum and chatter

Mar
19
2 months ago
Activity icon

Replied to Download Wont Start

I think you need to show some of the code, since this is to little information to point you in a direction.

Activity icon

Replied to Laravel Forum Package

The laracast forum is build specifically for laracasts. Laracasts does have an excellent series on building your own forum: https://laracasts.com/series/lets-build-a-forum-with-laravel you will also learn a ton!

If you are specifically searching for a package you should check Flarum and chatter

Activity icon

Replied to Download Wont Start

Where is it strored in the storage directory? The Storage helpers are connected to a disk, if you are using the local disk data needs to be stored in storage/app and not just storage/.

see: https://laravel.com/docs/7.x/filesystem#the-local-driver

Mar
17
2 months ago
Activity icon

Awarded Best Reply on Load Two Routes At Same Time

What do you mean with loading a road in a welcome page?

if you have a Result model, you need to fetch the data in your welcome controller (or directly in the route file).

Route::get('/', function() {

	$results = \App\Result::all();

	return view('welcome', ['results' => $results]);

});

Update

I Think it best if you check these lessons:

In fact, that whole series seems a good start, I think you are confusing routes, controllers and views.

Activity icon

Replied to Load Two Routes At Same Time

What do you mean with loading a road in a welcome page?

if you have a Result model, you need to fetch the data in your welcome controller (or directly in the route file).

Route::get('/', function() {

	$results = \App\Result::all();

	return view('welcome', ['results' => $results]);

});

Update

I Think it best if you check these lessons:

In fact, that whole series seems a good start, I think you are confusing routes, controllers and views.

Activity icon

Replied to Load Two Routes At Same Time

@deepu07 if you want to load the slider dynamically you need to perform an ajax request in the browser. Otherwise you need to pass the data to the view as you normally do within laravel.

Activity icon

Replied to Load Two Routes At Same Time

What do you expect that will happen? In other words what are you trying to accomplish?

Mar
16
2 months ago
Activity icon

Replied to Organize Components In Folders

Feel very stupid! Must have missed this in the docs!

Activity icon

Started a new Conversation Organize Components In Folders

Is it possible to organize your Blade components in folders? For example organize your layout components witin components/layout/app.blade.php but I can't figure out how to reference them within a blade file <x-layout-app></x-layout-app> did not work fore example.

Activity icon

Replied to Maintaining Historic Data

You might be able to accomplisch this by logging the changes to the model. Spatie has an excellent package for this: https://github.com/spatie/laravel-activitylog

What it does, if for example the team_id on your Profile model changes, it will record the change and the date the change took place. With that you should be able to determine what the correct data is when you're displaying historic data.

Activity icon

Replied to How To Use HTTPS In My Digital Ocean Laravel Deployment

You need to install an certificate on the DO server. Take a look at this: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04

Update. An other option is Cloudflare's free SSL service: https://www.cloudflare.com/ssl/

Feb
14
3 months ago
Activity icon

Replied to Laravel 6.14 Convert A Raw Sql Query To Laravel Query Builder

What did you try yourself, what was the result/error? What do you models look like etc.

Feb
12
3 months ago
Activity icon

Replied to ON Hosting Problem

Did you change the default users table migration file? Is the 'id' column still a primary key? Did you change the default registration files/controllers/trait?

It seems like it does not 'add' the ID to the DB.

Feb
08
3 months ago
Activity icon

Replied to Display Selected Record Information From Select Option

Take a look at https://laravel-livewire.com/ it was one of my suggestions earlier, it is non vue and it does not require any javascript knowledge on your part.

Activity icon

Replied to Display Selected Record Information From Select Option

For this you need to look at a frontend (javascript) library, something like: https://github.com/alpinejs/alpine https://vuejs.org/

You could also look at https://laravel-livewire.com/ (this is my favorite, sometimes combined with alpinejs)

Dec
10
5 months ago
Activity icon

Replied to Eager Loading On Polymorphic Relationships

Can you show us your models? Then we can realy see what you are trying to accomplish.

Activity icon

Replied to After Laravel Restore Cannot Login

Just to be sure, you say that APP_KEY in browser error report and .env file match (that is normal, the should do that always, regardless of an restore, they are the same. The question is, is your current APP_KEY the same as the one before the restore?