suppose if you have some tables in your database and when there is no data in tables you want to show a default message like “No Result Found” to show user that data is not available in database.For Example My Table structure is :

SKILL_NAMESKILL_LEVEL
PHP5
HTML8
JAVA5.5

and you wanna show “No Result Found” if a query doesn’t return any  matching result.For this you can use below code in laravel.You can use the @forelse (https://laravel.com/docs/5.6/blade#loops)

@forelse($candidateskill as $getData)
    {{ $getData->SKILL_NAME }}
        {{ $getData->SKILL_LEVEL }}
    
@empty
    No Data
@endforelse