mohammadkhazaee/laravel-htaccess

a package for dynamically edit .htaccess in laravel

Maintainers

Package info

github.com/Mohammad-Khazaee/laravel-htaccess

pkg:composer/mohammadkhazaee/laravel-htaccess

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

v0.3.1 2021-12-19 16:16 UTC

This package is auto-updated.

Last update: 2026-03-20 02:36:02 UTC


README

a package for dynamically edit .htaccess in laravel

use RedirectHtaccess Facade

function for add RedirectHtaccess()->add(); return instance of created htaccess

for delete from database

Htaccess()->find($id)->delete();

Important: this feature is available starting from Laravel 5.5. With version 5.4 or below, you must register your facades manually in the aliases section of the config/app.php configuration file.

You can also load an alias from a Service Provider (or anywhere else) by using the AliasLoader singleton class:

$loader = \Illuminate\Foundation\AliasLoader::getInstance(); $loader->alias('Calculator', "JohnDoe\BlogPackage\Facades\Calculator"); Our facade now no longer requires an import and can be used in projects from the root namespace:

// Usage of the example Calculator facade Calculator::add(5)->subtract(3)->getResult(); // 2