mohammadkhazaee / laravel-htaccess
a package for dynamically edit .htaccess in laravel
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/mohammadkhazaee/laravel-htaccess
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