public static function addAdminMenuItem($menuContent)
    {
        $menuPath = resource_path('views/admin/menu.blade.php');
        $menus = file_get_contents($menuPath);
        if (!str_contains($menus, $menuContent)) {
            file_put_contents($menuPath, $menus . "\n" . $menuContent . "\n");
        }
    }
public static function addAdminMenuItem($menuContent)
    {
        $menuPath = resource_path('views/admin/menu.blade.php');
        $menus = file_get_contents($menuPath);
        if (!str_contains($menus, $menuContent)) {
            file_put_contents($menuPath, $menus . "\n" . $menuContent . "\n");
        }
    }
public static function addAdminMenuItem ( $ menuContent ) { $ menuPath = resource_path ( 'views/admin/menu.blade.php' ) ; $ menus = file_get_contents ( $ menuPath ) ; if ( ! str_contains ( $ menus , $ menuContent ) ) { file_put_contents ( $ menuPath , $ menus . "\n" . $ menuContent . "\n" ) ; } }
Add menu item to admin blade template file.
@param $menuContent
Add menu item to admin blade template file .