I am new to laravel. I have two files in two different folders. I can't access one through other.
views/layouts/header.blade.php
views/buysalerent/buy.blade.php
I want to add header.blade.php to buy.blade.php.
As you are using blade templating engine, you can include one view into another view like below
In buy.blade.php, just add
@include('layouts.header')
With the above line, header will be included into your buy.blade.php