So this is not correct code, because you have don't have an About object here but a Collection of About objects.
$abouts = About::all(); // Collection of About objects (basically an array)
// You're trying to perform categories() on a collection, which doesn't work
// Also ending the statement with `where('id', 1')` doesn't work on the query builder
// It would work on a collection though
$webDesigns = $abouts->categories()->where('id', '1');
So I'm not sure what you're trying to achieve, but I think you want the categories of a single About object right?
// Returns About object
$about = About::first();
// Returns Collection of Category
$webDesigns = $about->categories()->where('id', 1)->get();
// Alternatively you can use the following approach
$about = About::with(['categories' => function ($query) {
return $query->id === 1;
}])->first();
$webDesigns = $about->categories;
I suggest you to read through the documentation one more time to understand this a bit better: https://laravel.com/docs/5.7/eloquent-relationships