mohammadkhazaee/laravel-htaccess

a package for dynamically edit .htaccess in laravel

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

This package is auto-updated.

Last update: 2025-03-19 23:48:11 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