PHP 8.3.31
Preview: ForeignKeyDefinition.php Size: 2.21 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Database/Schema/ForeignKeyDefinition.php

<?php

namespace Illuminate\Database\Schema;

use Illuminate\Support\Fluent;

/**
 * @method ForeignKeyDefinition deferrable(bool $value = true) Set the foreign key as deferrable (PostgreSQL)
 * @method ForeignKeyDefinition initiallyImmediate(bool $value = true) Set the default time to check the constraint (PostgreSQL)
 * @method ForeignKeyDefinition on(string $table) Specify the referenced table
 * @method ForeignKeyDefinition onDelete(string $action) Add an ON DELETE action
 * @method ForeignKeyDefinition onUpdate(string $action) Add an ON UPDATE action
 * @method ForeignKeyDefinition references(string|array $columns) Specify the referenced column(s)
 */
class ForeignKeyDefinition extends Fluent
{
    /**
     * Indicate that updates should cascade.
     *
     * @return $this
     */
    public function cascadeOnUpdate()
    {
        return $this->onUpdate('cascade');
    }

    /**
     * Indicate that updates should be restricted.
     *
     * @return $this
     */
    public function restrictOnUpdate()
    {
        return $this->onUpdate('restrict');
    }

    /**
     * Indicate that updates should set the foreign key value to null.
     *
     * @return $this
     */
    public function nullOnUpdate()
    {
        return $this->onUpdate('set null');
    }

    /**
     * Indicate that updates should have "no action".
     *
     * @return $this
     */
    public function noActionOnUpdate()
    {
        return $this->onUpdate('no action');
    }

    /**
     * Indicate that deletes should cascade.
     *
     * @return $this
     */
    public function cascadeOnDelete()
    {
        return $this->onDelete('cascade');
    }

    /**
     * Indicate that deletes should be restricted.
     *
     * @return $this
     */
    public function restrictOnDelete()
    {
        return $this->onDelete('restrict');
    }

    /**
     * Indicate that deletes should set the foreign key value to null.
     *
     * @return $this
     */
    public function nullOnDelete()
    {
        return $this->onDelete('set null');
    }

    /**
     * Indicate that deletes should have "no action".
     *
     * @return $this
     */
    public function noActionOnDelete()
    {
        return $this->onDelete('no action');
    }
}

Directory Contents

Dirs: 1 × Files: 17

Name Size Perms Modified Actions
Grammars DIR
- drwxrwxrwx 2025-09-17 06:53:00
Edit Download
50.81 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
7.28 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
14.84 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
2.49 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
1.63 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
2.21 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
570 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
99 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
485 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
4.00 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
5.54 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
7.34 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
3.02 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
3.17 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
4.20 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
2.81 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
4.43 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).