To get the value of a foreign key in Laravel, you can use Eloquent relationships. Define the relationship between the two models using the appropriate method (belongsTo, hasOne, hasMany, etc.). Then you can access the related model's attributes, including the foreign key value, using Eloquent methods such as $model->relationship->foreign_key. By defining and using relationships correctly, you can easily retrieve the value of a foreign key in Laravel.