Package Data | |
---|---|
Maintainer Username: | antoniobg |
Maintainer Contact: | jabg1992@gmail.com (Juan Becerra) |
Package Create Date: | 2017-02-28 |
Package Last Update: | 2018-04-27 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-24 15:04:43 |
Package Statistics | |
---|---|
Total Downloads: | 95 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
####How Install
Important, this package requieres node.js and npm installed.
Run composer require so2platform/publicprofile composer require league/flysystem-aws-s3-v3 composer require predis/predis composer require league/flysystem-aws-s3-v3 ~1.0
Run.
npm install express ioredis socket.io --save #Or if using yarn : yarn add express ioredis socket.io --save
Configure your aws s3 bucket credentials at config/publicprofile.php
In env file change BROADCAST_DRIVER driver to redis
BROADCAST_DRIVER=redis
Add package ServiceProvider to conf/app.php providers
So2platform\Publicprofile\Providers\PublicProfileServiceProvider::class,
Run dump-autoload
composer dump-autoload
Publish package content
php artisan vendor:publish --provider="So2platform\Publicprofile\Providers\PublicProfileServiceProvider"
Now in the browser navigate to http://"projectname"/profile/installer and select install. This will generate the required tables on configured database connection.
Start the nodejs server
node vendor/so2platform/publicprofile/socket.js
Configure auth model, model primary id and s3 settings in config/publicprofile.php
/* Node server url */ 'node_server' => 'http://cmsmodule.local:3000',
'default_auth_model_id' => 1,
'default_public_profile_id' => 1,
'auth_model_key' => "id_cliente",
'auth_guard' => "web",
/* Public profile backend Home view */
'backend_home_view' => 'public_profile',
/* Public session settings */
'public_session_instance' => '',
/* S3 Config */
's3_public_profile' => [
'S3_KEY' => env('AWS_KEY'),
'S3_SECRET' => env('AWS_SECRET'),
'S3_REGION' => env('AWS_REGION'),
'S3_BUCKET' => 'https://'.env('AWS_BUCKET').'.s3.amazonaws.com/',
'S3_BUCKET_POSTS_DIRECTORY' => 'public/publicprofiles/profileposts/', // With slash at end.
'S3_BUCKET_IMAGES_DIRECTORY' => 'public/publicprofiles/profileimages/', // With slash at end.
'S3_BUCKET_COVER_DIRECTORY' => 'public/publicprofiles/profilecovers/', // With slash at end.
]
Now you've installed the Public Profiles App, now goto to http://yourlocal/profile/installer
####Setup This package requieres a little configuration at conf/publicprofiles file parameters: