mmaged

mmaged

Member Since 5 Months Ago

israel

Experience Points
14,590
Total
Experience

410 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
133
Lessons
Completed
Best Reply Awards
0
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 3
14,590 XP
Feb
16
1 week ago
Activity icon

Started a new Conversation Users And Categories Have Many Services

There is a Users table that has many services, and Categories table that also has many services.

I want to develop an API like this for the services

Route::resource('categories/category_id/services', 'ServiceController');

what is the best way to add a service for the authenticated user and for the received category in the store method in ServiceController?

Jan
28
1 month ago
Activity icon

Commented on The New Project Modal: Tasks

If we did not add any value for the task in the form, an empty value will be passed and the validator's task will blow up and error, So we must ensure that the task is not null before call addTasks(). Like this...

if ($tasks = request('tasks')) {
    if (null !== request('tasks')[0]['body']) {
            $project->addTasks(request('tasks'));
        }
 }
Jan
27
1 month ago
Activity icon

Started a new Conversation Npm Not Render App.js

I have npm installed

npm install

And run npm watch

npm run watch

Thre result

 DONE  Compiled successfully in 12097ms                                                                                                     

       Asset     Size  Chunks             Chunk Names
/css/app.css  786 KiB     mix  [emitted]  mix

The problem that app.js file does not rendering by npm. So when I register a new Vue.JS component Globally in resources/js/app.js, "Unknown Custom Element" error blowing up

Jan
26
1 month ago
Activity icon

Replied to User Factory

what the potential problems if we just write it like this

$factory->define(Wallet::class, function (Faker $faker) {
    return [
        'name' => $faker->word,
        'user_id'=>auth->id() ?? factory(User::class},
    ];
});
Activity icon

Started a new Conversation User Factory

Why it is neccessry to put User factory inside function and return the id?!

$factory->define(Wallet::class, function (Faker $faker) {
    return [
        'name' => $faker->word,
        'user_id'=> function(){
            return Auth::id()?
                Auth::id() :
                factory(User::class)->create()->id();
        },
    ];
});
Jan
18
1 month ago
Activity icon

Replied to HTML Tags Become Disabled

@kevinblank @tray2

Hmm, Yes, I notice Tailwind makes heading elements are unstyled by default, and let them have the same font-size and font-weight as normal text.

But what the advantage of this?

Activity icon

Started a new Conversation HTML Tags Become Disabled

When installing Tailwind using

npm install tailwindcss

Create config file

npx tailwind init

And add Tailwind to CSS using the @tailwind directive to inject Tailwind

@tailwind base;

@tailwind components;

@tailwind utilities;

And Process CSS with Tailwind by adding Tailwind config file to webpack.mix.js

mix.js('resources/js/app.js', 'public/js')
 .sass('resources/sass/app.scss', 'public/css')
 .tailwind('./tailwind.config.js');

The problem that when complete all the above and type HTML tag in a blade file like <h1>Hello, World!</h1>

It appears as a normal tag without any bigger size or bold style and I got this situation with all the tags.

Jan
17
1 month ago
Activity icon

Replied to ActingAs | Be Methods

hmmm, I don't know, Thanks bty.

Activity icon

Started a new Conversation ActingAs | Be Methods

I was wondering whats the difference between $this->be() and $this->ActingAs() ?

Both document as "Set the currently logged in user for the application." in the InteractsWithAuthentication class

Jan
16
1 month ago
Activity icon

Started a new Conversation Class 'Tests\TestCase' Not Found

I just download "SimplePHPUnit-for-Sublime-Text" plugin to run PHPUnit tests in Laravel.

But when I run PHPUnit: Run I get PHP Fatal error: Uncaught Error: Class 'Tests\TestCase' not found

Jan
14
1 month ago
Activity icon

Replied to Too Many Requests Message

I get this message whatever I download an episode since yesterday

Activity icon

Replied to Too Many Requests Message

Ok, I will slow down. But now how to solve this?

Activity icon

Started a new Conversation Too Many Requests Message

When trying to download an episode I get "429 | Too Many Requests" Error. Why this may happen and how to solve it?

Jan
12
1 month ago
Activity icon

Replied to Domain Checker App

Thanks, Guzzle works for me.

Activity icon

Replied to Domain Checker App

Hmmm, I am thinking about this. But how I can open the URL implicitly and save its response so I can check the "This page isn't available" text.

Activity icon

Replied to Domain Checker App

No, I don't want to create a new account, just check if it exists or not, Did the API do this? Posting to the registration is slow as you said, And open the URL with the username does not work because the website will not redirect to another page but shows 'This page isn't available' message.

Activity icon

Started a new Conversation Domain Checker App

I am building an application that checks the availability of the given username.

E.g if the given username is 'someone' the app will check if https://laracasts.com/@someone is used or not, and https://www.facebook.com/someone and so on.

I already stored the absolute URLs in the database so the app concatenates the URL with the username to check it.

But how the app can determine if it is available or not, How to receive data from a website like Facebook tells me that the username is available or not.