Mo7sin

Mo7sin

Member Since 5 Years Ago

Mansoura, Egypt

Web Developer at BooksJuice

Experience Points 162,465
Experience Level 33

2,535 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 1545
Lessons
Completed
Best Reply Awards 12
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.

04 Sep
1 week ago

Mo7sin commented on Lazy Collections

We all have that issue since new design was published!

30 Aug
2 weeks ago

Mo7sin left a reply on How Many Queries Is Too Many?

I believe 400 queries are too much!

The key here is how do you check to see if the user has voted or submitted or whatever he did on the current model? I see you use savedSubmissions relationship, why don't you eager load it?

18 Aug
4 weeks ago

Mo7sin commented on One-to-Many

Yes, it is!

21 Jul
1 month ago

Mo7sin left a reply on Multi Auth And Policy Problem

I think the problem is that you don't have an authenticated user in your policy!

Does the Admin model implement an authentication mechanism?

23 Jun
2 months ago

Mo7sin left a reply on Which OS Are You Using?

Linux, Ubuntu.

19 May
3 months ago

Mo7sin left a reply on Where Correct Word

Which is the correct result! What is the problem exactly?

03 Apr
5 months ago

Mo7sin left a reply on How To Display This Data Using Arrays Inside Blade?

@BEHNAMPMDG3 - huh? Where is that question btw?

01 Apr
5 months ago
19 Mar
5 months ago

Mo7sin left a reply on Can Store File But Can't Destroy It

You may try deleting the file separately as a debugging process.

In a route maybe:

Route::get('/testing', function() {
    Storage::delete('public/music/some-file-name.mp3');
});

Mo7sin left a reply on Can Store File But Can't Destroy It

You should've any feedback, can you share it?

16 Mar
6 months ago

Mo7sin left a reply on Empty $errors In Blade Template

@VBEVDEV - You're welcome, Good to hear that everything is fine now.

Mo7sin left a reply on Empty $errors In Blade Template

You var dumped the errors variable after the request or before?

Also, take a look here https://laravel.com/docs/5.8/validation#quick-displaying-the-validation-errors

13 Feb
7 months ago

Mo7sin left a reply on Please Bring Back The Older Laracasts Design

@jeffreyway

The label says CANCELED and the subscription should expire on 2019-11-21

Also, Subscriber badge was not applied until now, Subscription was renewed on 2018-11-21

Subscribtion issue

11 Feb
7 months ago

Mo7sin left a reply on Use Accesor GetAttribute In Query Model Laravel

Have you tried to use protected $withCount = ['reviews']; property?

This way reviews_count will be available for you to use within your query statement!

19 Jan
7 months ago

Mo7sin left a reply on Class Html Not Found

@u843867 Glad to help :)

07 Dec
9 months ago
06 Dec
9 months ago

Mo7sin left a reply on Update Notification Icon (notification Count) Without Refreshing The Page.

@anonymouse703 Your code seems ok, Now you'll need to receive that broadcast and update your icon (or whatever you need) without refresh right?

I advise you to use Laravel Echo, Read more about it here https://laravel.com/docs/5.7/broadcasting#installing-laravel-echo

05 Dec
9 months ago

Mo7sin left a reply on Update Notification Icon (notification Count) Without Refreshing The Page.

You will need to broadcast the notification, then you set up a listener for it.

Read more details here ---> https://laravel.com/docs/5.7/notifications#broadcast-notifications

03 Dec
9 months ago

Mo7sin left a reply on Count In Json

Show us some code, maybe!?

01 Dec
9 months ago

Mo7sin left a reply on Storage:Link Not Working Properly

You shouldn't have public included, The full URL should be http://test.local/storage/images/logo.png

Try to debug and inspect your code to see what is being printed out.

21 Nov
9 months ago

Mo7sin left a reply on Remember Me

What are you trying to access here?

$request{$this->username()}

Mo7sin left a reply on Remember Me

@graffislife that goes Typically in LoginController by default.

Mo7sin left a reply on Use Laravel Lang And Choice On Vue Component

Maybe appending these fields with your Model JSON using ~$append~ property.

More info here https://laravel.com/docs/5.7/eloquent-serialization#appending-values-to-json

20 Nov
9 months ago

Mo7sin left a reply on Remember Me

At first, It's not disabled!

You just have to pass the second argument to Auth::attemp() as a Boolean.

Auth::attempt(['email' => $email, 'password' => $password], $remember)
10 Nov
10 months ago

Mo7sin left a reply on Can't Seem To Get My Eloquent Model Working

Your welcome, Glad to help.

Mo7sin left a reply on Can't Seem To Get My Eloquent Model Working

As you can see

  #relations: array:1 [▼
    "level" => null
  ]

There is no level attached!

A small advice, If you want laravel to fetch the relationships automatically for you, you'll have to follow its convention first, In your case,

  #fillable: array:2 [▼
    0 => "title"
    1 => "level"
  ]

You will have to rename level column to be level_id.

Read more about that ---> https://laravel.com/docs/5.7/eloquent-relationships

Mo7sin left a reply on Can't Seem To Get My Eloquent Model Working

This only means that you don't have a title for level

{{ $subject->level->title ?? ' - '}}

Maybe the level has a title in the database, But it's not assigned to the current subject.

In your view try

// inside your loop add this line

dd($subject)

and post here whatever you got!

Mo7sin left a reply on Can't Seem To Get My Eloquent Model Working

@damcclean It is level not levels

$subjects = Subject::with('level')->get();
07 Nov
10 months ago

Mo7sin left a reply on Please Bring Back The Older Laracasts Design

@JEFFREYWAY - Take your time,

Another issue: Open testimonials modal from the link in footer menu, Scrollbar is at the end of its area and not relevant to the content.

Mo7sin left a reply on Please Bring Back The Older Laracasts Design

@JEFFREYWAY - Also, the notifications area has the same issue.

notifications

Mo7sin left a reply on Please Bring Back The Older Laracasts Design

@MARTINBEAN - Hmmm, I bet it's timezone issue, Mine is GMT+2, Is yours GMT+0?

Mo7sin left a reply on Please Bring Back The Older Laracasts Design

@JEFFREYWAY - On all replies, not just mine!

screenshot

Mo7sin left a reply on Please Bring Back The Older Laracasts Design

@JEFFREYWAY - Hey Jeff, I think there is an issue with timestamps, I just posted a reply and Its says 7h ago!

29 Sep
11 months ago

Mo7sin left a reply on Laravel Echo /broadcasting/auth 404

Hi, @chlamy

/broadcasting/auth is just a route to authorize your channels.

Also, you can define authorization within your channels.php file for every channel you have.

Broadcast::channel('order.{orderId}', function ($user, $orderId) {
    return $user->id === Order::findOrNew($orderId)->user_id;
});

More details here https://laravel.com/docs/5.7/broadcasting#authorizing-channels

11 Sep
1 year ago

Mo7sin left a reply on Help In Fetching Of Records

Show us your relationships between these Models, please!

01 Apr
1 year ago

Mo7sin left a reply on Unable To Access And Display Image I Uploaded To The Storage Folder

You will need to create a symbolic link.

https://laravel.com/docs/5.6/filesystem

To create the symbolic link, you may use the storage:link Artisan command:

php artisan storage:link

15 Mar
1 year ago

Mo7sin left a reply on Error In Npm Run Watch

Sounds like you have an issue related to EventBus in components/Leftbar.vue

Maybe posting your code would help figuring out the problem.

06 Mar
1 year ago

Mo7sin left a reply on Relationship Issue In Laravel

You just need to call the relationship correctly!

$applicants = Applicants::with('applicantSkill', 'applicantSkill.skills')->paginate();
26 Dec
1 year ago

Mo7sin left a reply on Error Page

Post some code to clear your idea!

20 Dec
1 year ago

Mo7sin left a reply on Store Image Clientoriginalname In Mysql Database

Are there any errors returned?

Also, try this:

if (Input:: hasFile('image1')) { 

    $image = Input::file('image1');

    $destinationpath = public_path('images');

    $imagename1 = $image->getClientOriginalName();

    $image->move($descriptionpath, $imagename1);

}


$insert = array( 'image1' => $imagename1); 

DB::table('products')->insert($insert);
18 Dec
1 year ago