ahmed-fathy/helpers

هذه الحزمة خاصة باطار عمل لارافل حيث تضيف خاصية التحكم باللغات وبعض الدوال المساعدة



Documentation

composer require "ahmed-fathy/helpers":"@dev"

config\app.php --> providers array

    Collective\Html\HtmlServiceProvider::class,
    DaveJamesMiller\Breadcrumbs\ServiceProvider::class,
    AhmedFathy\Helpers\RouteServiceProvider::class,
    AhmedFathy\Helpers\ServiceProvider::class,

config\app.php --> aliases array

    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
    'Btn' => AhmedFathy\Helpers\Src\Btn::class,
    'bsForm' => AhmedFathy\Helpers\Src\bsForm::class,
    'langForm' => AhmedFathy\Helpers\Src\langForm::class,
    'MyRoute' => AhmedFathy\Helpers\Src\Routes\MyRoute::class,
    'Files' => AhmedFathy\Helpers\Src\Files\Files::class,
    'Control' => AhmedFathy\Helpers\Src\Control::class,
    'Breadcrumbs' => DaveJamesMiller\Breadcrumbs\Facade::class,

publish vendor

     php artisan vendor:publish --force

app\Console\Kernel.php

protected $commands = [
    ...
    Commands\Controller::class,
    Commands\View::class,    
];

app/Http/Kernel.php

   protected $middlewareGroups = [
    'web' => [
        ...
        \App\Http\Middleware\LocaleMiddleware::class,
    ],

  protected $routeMiddleware = [
    ...
    'maintenance' => \App\Http\Middleware\maintenance::class,
    'rule' => \App\Http\Middleware\Rules::class,
];

app/Http/routes.php

    MyRoute::shareVariables();
    ...

database/seeds/DatabaseSeeder.php

public function run()
{
    ...
    $this->call(LangsTableSeeder::class);
    $this->call(SettingSeeder::class);
    $this->call(UserSeeder::class);

}

composer dump-autoload

php artisan migrate --seed

بعد الانتهاء من الخطوات السابقة ادخل على رابط

adminpanel

وقم بتسجيل الدخول بهذا الحساب

user : alfurat.eg@gmail.com

pass : 123456