Looking to hire Laravel developers? Try LaraJobs

laravel-htaccess maintained by mohammadkhazaee

Description
a package for dynamically edit .htaccess in laravel
Last update
2021/12/19 17:16 (dev-master)
License
Links
Downloads
9

Comments
comments powered by Disqus

laravel-htaccess

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