Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Deletes a file
unlink(string $filename, ?resource $context null): bool
        foreach ($paths as $path) {

            try {

                if (@
unlink($path)) {

                    
clearstatcache(false$path);

                } else {

                    
$success false;
        $laravel = new Application(getcwd());



        if (
is_file($configPath $laravel->getCachedConfigPath())) {

            @
unlink($configPath);

        }



        if (
is_file($servicesPath $laravel->getCachedServicesPath())) {
        }



        if (
is_file($servicesPath $laravel->getCachedServicesPath())) {

            @
unlink($servicesPath);

        }



        if (
is_file($packagesPath $laravel->getCachedPackagesPath())) {
        }



        if (
is_file($packagesPath $laravel->getCachedPackagesPath())) {

            @
unlink($packagesPath);

        }

    }

}
    public function handle()

    {

        if (
is_file($servicesPath $this->laravel->getCachedServicesPath())) {

            @
unlink($servicesPath);

        }



        if (
is_file($packagesPath $this->laravel->getCachedPackagesPath())) {
        }



        if (
is_file($packagesPath $this->laravel->getCachedPackagesPath())) {

            @
unlink($packagesPath);

        }



        
$this->components->info('Compiled services and packages files removed successfully.');
            $this->laravel->maintenanceMode()->deactivate();



            if (
is_file(storage_path('framework/maintenance.php'))) {

                
unlink(storage_path('framework/maintenance.php'));

            }



            
$this->laravel->get('events')->dispatch(MaintenanceModeDisabled::class);
    public function deactivate(): void

    
{

        if (
$this->active()) {

            
unlink($this->path());

        }

    }
        return tap($view->render(), function () use ($view$deleteCachedView) {

            if (
$deleteCachedView) {

                
unlink($view->getPath());

            }

        });

    }
        $this->assertSame('/versioned.css'$result->toHtml());



        
unlink($manifest);

    }



    public function 
testMixCachesManifestForSubsequentCalls()
        $manifest $this->makeManifest();

        
mix('unversioned.css');

        
unlink($manifest);



        
$result mix('/unversioned.css');
        $this->assertSame('/versioned.css'$result->toHtml());



        
unlink($manifest);

    }



    public function 
testMixMissingManifestThrowsException()
        $this->assertSame('/mix/versioned.css'$result->toHtml());



        
unlink($manifest);

        
rmdir($directory);

    }
        $this->assertSame('/mix/versioned.css'$result->toHtml());



        
unlink($manifest);

        
rmdir($directory);

    }
        $this->assertSame('//laravel.com/docs/unversioned.css'$result->toHtml());



        
unlink($path);

    }



    public function 
testMixHotModuleReloadingGetsUrlFromFileWithHttp()