Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

readme.md

Общие компоненты для сайтов на Laravel.

Локальная разработка

composer.json родительского проекта

"repositories": [
  {
    "type": "path",
    "url": "~/Sites/generic",
    "options": {
      "symlink": true
    }
  }
],

Маршруты для входа через социалки

routes/web.php

Route::get('auth/facebook', 'Auth\Facebook@index');
Route::get('auth/facebook/callback', 'Auth\Facebook@callback');
Route::get('auth/google', 'Auth\Google@index');
Route::get('auth/google/callback', 'Auth\Google@callback');
Route::get('auth/odnoklassniki', 'Auth\Odnoklassniki@index');
Route::get('auth/odnoklassniki/callback', 'Auth\Odnoklassniki@callback');
Route::get('auth/vk', 'Auth\Vk@index');
Route::get('auth/vk/callback', 'Auth\Vk@callback');

Настройки

config/cfg.php

'gm_bin' => env('GM_BIN', '/usr/bin/env gm'),
'locales' => [
    'ru' => ['posix' => 'ru_RU.UTF-8'],
    'en' => ['posix' => 'en_US.UTF-8'],
],
'metrics_address' => 'udp://127.0.0.1:1111',
'sphinx' => [
    'host'   => env('SPHINX_HOST', 'localhost'),
    'port'   => env('SPHINX_PORT', 9306),
    'socket' => env('SPHINX_SOCKET', ''),
],
'telegram' => [
    'admin_id' => env('TELEGRAM_ADMIN_ID'),
],

config/view.php

'paths' => [
    ...
    realpath(base_path('vendor/ivacuum/generic/views'))
],

Локализация

resources/lang/en/validation.php

'concurrency_control' => 'Another user has updated this resource since this page was loaded. Please refresh the page and try again.',

resources/lang/ru/validation.php

'concurrency_control' => 'Кто-то обновил объект до сохранения ваших правок. Обновите страницу и повторите попытку.',

About

No description, website, or topics provided.

Resources

License

Packages

No packages published