touch

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sets access and modification time of file
<?php touch(string $filename, ?int $mtime = null, ?int $atime = null): bool
<?php         if (app()->runningUnitTests())

        {

            @touch($this->path(), now()->timestamp);

        }

    }
<?php         foreach (FileUploadConfiguration::storage()->allFiles() as $fileShortPath) {

            touch(FileUploadConfiguration::storage()->path($fileShortPath), now()->subDays(2)->timestamp);

        }



        Livewire::test(FileUploadComponent::class)
<?php         foreach (FileUploadConfiguration::storage()->allFiles() as $fileShortPath) {

            touch(FileUploadConfiguration::storage()->path($fileShortPath), now()->subDays(2)->timestamp);

        }



        Livewire::test(FileUploadComponent::class)
<?php         foreach (FileUploadConfiguration::storage()->allFiles() as $fileShortPath) {

            touch(FileUploadConfiguration::storage()->path($fileShortPath), now()->subDays(2)->timestamp);

        }



        Livewire::test(FileUploadComponent::class)
<?php     protected function createMissingSqliteDatabase($path)

    {

        if ($this->option('force')) {

            return touch($path);

        }



        if ($this->option('no-interaction')) {
<?php             throw new RuntimeException('Database was not created. Aborting migration.');

        }



        return touch($path);

    }
<?php         $path = public_path(Str::finish($directory, '/').'mix-manifest.json');



        touch($path);
<?php         $path = public_path(Str::finish($directory, '/').'mix-manifest.json');



        touch($path);
<?php         $lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock';



        if (! file_exists($lockFile)) {

            touch($lockFile);

        }

    }
<?php use PHPUnit\Framework\ExpectationFailedException;



beforeEach(function () {

    touch($this->tempFile = sys_get_temp_dir().'/fake.file');

});



afterEach(function () {
<?php use PHPUnit\Framework\ExpectationFailedException;



beforeEach(function () {

    touch($this->tempFile = sys_get_temp_dir().'/fake.file');

});



afterEach(function () {
<?php use PHPUnit\Framework\ExpectationFailedException;



beforeEach(function () {

    touch($this->tempFile = sys_get_temp_dir().'/fake.file');

});



afterEach(function () {
<?php             $this->cleanupReadOnlyFile($filename);

        }



        touch($filename);

        chmod($filename, $mode);



        if ($this->isLinuxRoot()) {
<?php         $path = $this->option('rr-config');



        if (! $path) {

            touch(base_path('.rr.yaml'));



            return base_path('.rr.yaml');

        }
<?php             return;

        }



        touch($this->tempDir.'/css/style*.css');

        touch($this->tempDir.'/css/style{.css');

        touch($this->tempDir.'/css/style}.css');

        touch($this->tempDir.'/css/style?.css');