PHPackages                             exolnet/laravel-sqlite-fluent-drop-foreign - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. exolnet/laravel-sqlite-fluent-drop-foreign

ActiveLibrary[Database &amp; ORM](/categories/database)

exolnet/laravel-sqlite-fluent-drop-foreign
==========================================

Add a fluent dropForeign when using sqlite database

v1.10.0(3mo ago)12123.1k—5%2[1 PRs](https://github.com/eXolnet/laravel-sqlite-fluent-drop-foreign/pulls)MITPHPPHP ^8.2CI passing

Since Dec 19Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/eXolnet/laravel-sqlite-fluent-drop-foreign)[ Packagist](https://packagist.org/packages/exolnet/laravel-sqlite-fluent-drop-foreign)[ Docs](https://github.com/eXolnet/laravel-sqlite-fluent-drop-foreign)[ RSS](/packages/exolnet-laravel-sqlite-fluent-drop-foreign/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (13)Used By (0)

laravel-sqlite-fluent-drop-foreign
==================================

[](#laravel-sqlite-fluent-drop-foreign)

[![Latest Stable Version](https://camo.githubusercontent.com/8aceb32bcdcbf6f2fb35b98f32f3d0a8e92df5c95ac98984d98d208623f5851b/68747470733a2f2f706f7365722e707567782e6f72672f65586f6c6e65742f6c61726176656c2d73716c6974652d666c75656e742d64726f702d666f726569676e2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-sqlite-fluent-drop-foreign)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/a98cb67072e62627fa08886165c277100a1ccab449d248a35afd1bbe57ed0abc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f65586f6c6e65742f6c61726176656c2d73716c6974652d666c75656e742d64726f702d666f726569676e2f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/eXolnet/laravel-sqlite-fluent-drop-foreign/actions?query=workflow%3Atests)[![Total Downloads](https://camo.githubusercontent.com/28dbe62f33e6e274d12dd83c48cd80633c6653ed7d6d5924dcdc10bb87698fcc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65586f6c6e65742f6c61726176656c2d73716c6974652d666c75656e742d64726f702d666f726569676e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eXolnet/laravel-sqlite-fluent-drop-foreign)

Make dropForeign fluent when using an SQLite database.

Installation
------------

[](#installation)

Require this package with composer:

```
composer require exolnet/laravel-sqlite-fluent-drop-foreign

```

If you don't use package auto-discovery, add the service provider to the `providers` array in `config/app.php`:

```
Exolnet\SQLiteFluentDropForeign\SQLiteFluentDropForeignServiceProvider::class

```

Usage
-----

[](#usage)

After the package is installed, all the call to `dropForeign` on a `sqlite` connection will return a `new Fluent()` in order to avoid getting the `SQLite doesn't support dropping foreign keys (you would need to re-create the table).`error.

Testing
-------

[](#testing)

To run the phpUnit tests, please use:

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Simon Gaudreau](https://github.com/Gandhi11)
- [All Contributors](../../contributors)

License
-------

[](#license)

Copyright © [eXolnet](https://www.exolnet.com). All rights reserved.

This code is licensed under the [MIT license](http://choosealicense.com/licenses/mit/). Please see the [license file](LICENSE) for more information.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 79.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~203 days

Recently: every ~305 days

Total

12

Last Release

104d ago

PHP version history (5 changes)v1.0.0PHP ^7.2

v1.3.0PHP ^7.3|^8.0

v1.6.0PHP ^8.0

v1.8.0PHP ^8.1

v1.9.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4064055?v=4)[eXolnet](/maintainers/exolnet)[@eXolnet](https://github.com/eXolnet)

---

Top Contributors

[![xel1045](https://avatars.githubusercontent.com/u/1497697?v=4)](https://github.com/xel1045 "xel1045 (65 commits)")[![Gandhi11](https://avatars.githubusercontent.com/u/4001049?v=4)](https://github.com/Gandhi11 "Gandhi11 (11 commits)")[![ChristopheTremblay](https://avatars.githubusercontent.com/u/61481239?v=4)](https://github.com/ChristopheTremblay "ChristopheTremblay (3 commits)")[![clablancherie-exo](https://avatars.githubusercontent.com/u/214526504?v=4)](https://github.com/clablancherie-exo "clablancherie-exo (2 commits)")[![TheDoctor0](https://avatars.githubusercontent.com/u/16612504?v=4)](https://github.com/TheDoctor0 "TheDoctor0 (1 commits)")

---

Tags

hacktoberfestlaravellaravel-packagephpsqlitelaravelexolnetlaravel-sqlite-fluent-drop-foreign

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/exolnet-laravel-sqlite-fluent-drop-foreign/health.svg)

```
[![Health](https://phpackages.com/badges/exolnet-laravel-sqlite-fluent-drop-foreign/health.svg)](https://phpackages.com/packages/exolnet-laravel-sqlite-fluent-drop-foreign)
```

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8703.0M17](/packages/yajra-laravel-oci8)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
