{{$one = 'testFileName'}}
@include('folder.project.$one')
2 Answers
You can do that
First solution
{{$one = 'folder.project.testFileName'}}
@include($one)
second solution
{{$one = 'testFileName'}}
@include("folder.project.$one")
third solution
{{$one = 'testFileName'}}
@include("folder.project." . $one)
And for define variable you can also use
@php
$one = 'testFileName';
@endphp
or (but it can depends of laravel version)
@php($one = 'testFileName')

@include("folder.project.$one")note the double quotes. it's basically PHP string rules@include("folder.project.".$one)and if you want to pass$onetofolder.projectthen you can pass it as second parameter