Laravel uses Blade templating engine. Blade is a powerful but simple templating engine of Laravel. Blade allows you to use plain php code into view and it compiles and cached view until it’s modified. Blade view files are stored in resources/views directory with extension .blade.php. An example of blade file is :
{{ $slot }}
In the variable $slot we can assign any value which we want to inject to component. Component looks like: @component('alert')
Whoops! Something went wrong!
@endcomponent
@component is the blade directive here. This, along with other Laravel basic interview questions for freshers, is a regular feature in Laravel interviews, be ready to tackle it with the approach mentioned.