Skip to content

Latest commit

 

History

379 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Общие компоненты для сайтов на 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 convert'),
'locales' => [
    'ru' => ['posix' => 'ru_RU.UTF-8'],
    'en' => ['posix' => 'en_US.UTF-8'],
],
'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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages