sehmbimanvir

sehmbimanvir

PHP Developer at Chandigarh

Member Since 1 Year Ago

Phagwara

Experience Points
260
Total
Experience

4,740 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
0
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 1
260 XP
Apr
07
6 months ago
Activity icon

Replied to Where Can I Get A Complete List Of Laravel 5 Events ?

Below are the default events provided by Laravel.

List doesn't include eloquent events.

1. Illuminate\Auth\Events\Attempting
2. Illuminate\Auth\Events\Authenticated
3. Illuminate\Auth\Events\Failed
4. Illuminate\Auth\Events\Lockout
5. Illuminate\Auth\Events\Login
6. Illuminate\Auth\Events\Logout
7. Illuminate\Auth\Events\PasswordReset
8. Illuminate\Auth\Events\Registered
9. Illuminate\Auth\Events\Verified

10. Illuminate\Cache\Events\CacheEvent
11. Illuminate\Cache\Events\CacheHit
12. Illuminate\Cache\Events\CacheMissed
13. Illuminate\Cache\Events\KeyForgotten
14. Illuminate\Cache\Events\KeyWritten

15. Illuminate\Console\Events\ArtisanStarting
16. Illuminate\Console\Events\CommandFinished
17. Illuminate\Console\Events\CommandStarting

18. Illuminate\Database\Events\ConnectionEvent
19. Illuminate\Database\Events\QueryExecuted
20. Illuminate\Database\Events\StatementPrepared
21. Illuminate\Database\Events\TransactionBeginning
22. Illuminate\Database\Events\TransactionCommited
23. Illuminate\Database\Events\TransactionRolledBack

24. Illuminate\Log\Events\MessageLogged

25. Illuminate\Mail\Events\MessageSending
26. Illuminate\Mail\Events\MessageSent

27. Illuminate\Notifications\Events\BroadcastNotificationCreated
28. Illuminate\Notifications\Events\NotificationFailed
29. Illuminate\Notifications\Events\NotificationSending
30. Illuminate\Notifications\Events\NotificationSent

31. Illuminate\Queue\Events\JobExceptionOccured
32. Illuminate\Queue\Events\JobFailed
33. Illuminate\Queue\Events\JobProcessed
34. Illuminate\Queue\Events\JobProcessing
35. Illuminate\Queue\Events\Looping
36. Illuminate\Queue\Events\WorkerStopping

37. Illuminate\Redis\Events\CommandExecuted

38. Illuminate\Routing\Events\RouteMatched
Feb
21
7 months ago
Activity icon

Replied to Laravel Router Macro

Thanks @realrandyallen, Its working now.

Feb
20
7 months ago
Activity icon

Started a new conversation Laravel Router Macro

Hi,

I am facing a problem while making a call to Router Macro.

I registered the Router Macro in RouteServiceProvider.php File under the boot method in following way

    Route::macro('test', function ($prefix = '/') {
            Route::group(['prefix' => $prefix], function () {
                $this->get('/login', function () {
                    return 0;
                });
            });
        });

Now, in my web.php i am using following code to call above macro

Route::test();

But i got follwing error.

alt text

What's wrong with above code. Anyone please help.

May
08
1 year ago
Activity icon

Replied to Eloquent Select Default Columns

@rin4ik But i don't want to use getHidden() method every time when i select state, city.

I just want to select basic columns so i don't need to select in query.

My User table contains almost 30-32 fields and i don't want to select them all

Activity icon

Replied to Eloquent Select Default Columns

@m-rk Is there any way that i can use addSelect method of Database Builder API

https://laravel.com/api/5.3/Illuminate/Database/Query/Builder.html#method_addSelect

Activity icon

Started a new conversation Eloquent Select Default Columns

I have a User Model with columns id, name, email, uuid, password,address,state,city,timestamps

What i am doing is

User::select('id', 'name', 'email', 'uuid')->find(1);

Problem

Now the problem is that every time i am querying on this model i have to specify columns because i don't need other columns (in most cases).

Question

Is there any method by which i can select columns by default. So that every time when i call user model it will load basic columns id, name, email, uuid automatically. ?

Apr
23
1 year ago
Activity icon

Replied to Step By Step Guide To Installing Socket.io And Broadcasting Events With Laravel 5.1

In Node Socket Event is broadcasting but in blade file socket is not listening this emitted event

** socket.js file ** `io.emit(channel, message.data);'

welcome.blade.php file socket.on("test-channel", function(message){ console.log(message); $('#power').text(parseInt($('#power').text()) + parseInt(message.data.power)); });

Nov
29
1 year ago
Activity icon

Replied to Where Are You All From?

Punjab, India

Activity icon

Started a new conversation Eloquent Relationships

I have a User Model with "Shifts" Relation.

$user = User::find(1); $data = $user->shifts; return $user;

in above case why user is returned with shifts relation ? I just called shifts i didn't assigned shifts to it