Mo7sin

Member Since 5 Years Ago

Mansoura, Egypt

Web Developer at Hyyat Host

Experience Points 156,055
Experience Level 32

3,945 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 1483
Lessons
Completed
Best Reply Awards 12
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

19 May
2 days ago

Mo7sin left a reply on Where Correct Word

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

03 Apr
1 month ago

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

@BEHNAMPMDG3 - huh? Where is that question btw?

01 Apr
1 month ago
19 Mar
2 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
2 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
3 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
3 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!

19 Jan
4 months ago

Mo7sin left a reply on Class Html Not Found

@u843867 Glad to help :)

07 Dec
5 months ago
06 Dec
5 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
5 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
5 months ago

Mo7sin left a reply on Count In Json

Show us some code, maybe!?

01 Dec
5 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
6 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
6 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
6 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
6 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

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

@JEFFREYWAY - On all replies, not just me!

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
7 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
8 months ago
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!

25 Dec
1 year ago

Mo7sin left a reply on Test

You Can't! Only admins can do

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

Mo7sin left a reply on The Requested URL /workspace/daily-stuff/public/user/12 Was Not Found On This Server.

You don't have an endpoint for that URL /workspace/daily-stuff/public/user/12

in your route file you should have something like that

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

    return view('welcome'); 

});


Route::get('/workspace/daily-stuff/public/user/{id}', '[email protected]');

Then in UsersController

// show method should show a User, not a Car, So maybe it looks like that

public function show($id)
{
    $user = User::find($id);

        return view('user.show', compact('user'));
}
17 Dec
1 year ago

Mo7sin left a reply on Redirecting Users And Admins To Different Pages

Redirect from where?

I assume you have a method to determine the current user is admin or user, Depends on where you need to redirect from, you may use a middleware or a simple check for the type.

Mo7sin left a reply on Image Upload Doesn't Work | Laravel 5.5

If I where you, I will dd(request()->all());

use it and paste whatever you've got here.