PHP code example of ivacuum / generic
1. Go to this page and download the library: Download ivacuum/generic library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ivacuum / generic example snippets
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');
'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'),
],
'paths' => [
...
realpath(base_path('vendor/ivacuum/generic/views'))
],
'concurrency_control' => 'Another user has updated this resource since this page was loaded. Please refresh the page and try again.',
'concurrency_control' => 'Кто-то обновил объект до сохранения ваших правок. Обновите страницу и повторите попытку.',