Suppose we have not declared a variable in the controller and calling it in views, then it shows undefined variable Error. See the below image.
Suppose, we are calling $string variable and we have not declared the variable in the controller so it gives an error like above shown.
To avoid this error we use @isset function. See the below image for code.
as we have not declared the string so it returns Variable is not found. See the below image.
Laravel 5.5 CRUD Tutorial, Introduction And Agenda Overview, Laravel Training Part – 1 DevopsSchool
Latest posts by Sushant Kumar (see all)
- What is On-Page Optimization and Off-page Optimization - March 14, 2024
- [SOLVED] Flutter : PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) - December 7, 2021
- [Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown - December 6, 2021