📦 Installation Guide
Prerequisites
| Requirement | Minimum Version | Recommended | Notes |
|---|---|---|---|
| PHP | 7.1 | 8.0+ | Required for Laravel compatibility |
| Laravel | 5.8 | 9.0+ | Framework requirement |
| Composer | 2.0 | Latest | Package management |
| MySQL | 5.7 | 8.0+ | Database requirement |
| Node.js | 14.x | 18.x+ | For asset compilation (optional) |
Installation Steps
Install the ProfileHub package using Composer in your Laravel project root directory:
If you're using Laravel version older than 5.5, manually register the service provider in config/app.php:
Publish the package configuration, views, and assets to your Laravel application:
Publish Configuration Files
Publish View Templates
Publish Static Assets
Publish All Assets at Once
config/, views to resources/views/vendor/profilehub/, and assets to public/vendor/profilehub/.
Run the ProfileHub specific migrations to create the required database tables:
Run ProfileHub Migrations
Run Standard Laravel Migrations
Available Database Tables
| Table Name | Purpose |
|---|---|
| user_profiles | Core user profile information |
| user_field | Custom profile field definitions |
| user_field_groups | Field organization and grouping |
| user_field_details | User-specific field data |
| user_groups | User group management |
| countries | International country data |
| country_states | State/province information |
| pages | Dynamic page management |
| page_widgets | Page layout and widgets |
Optionally populate the database with sample data and default configurations:
- Country and state data
- Default field types
- Sample page configurations
- Basic user groups
Update your .env file with ProfileHub specific configurations:
ProfileHub routes are automatically registered. You can customize route prefixes in the configuration file:
Available Routes
Test your ProfileHub installation by visiting the admin dashboard:
Post-Installation Setup
Post-Installation Checklist
- Verify all database tables are created properly
- Check that static assets are accessible
- Configure profile field groups and custom fields
- Set up user roles and permissions
- Customize email templates if needed
- Configure file upload settings
- Test user registration and profile creation
- Set up backup procedures for user data
Installed File Structure
Common Installation Issues
Migration Errors
Issue: Migration fails with foreign key constraints
Solution: Ensure you run php artisan profilehub:migrate before php artisan migrate
Asset Not Found
Issue: CSS/JS files return 404 errors
Solution: Run php artisan vendor:publish --tag=profilehub-assets --force
Permission Denied
Issue: File upload fails
Solution: Set proper permissions: chmod -R 755 storage/ public/
Class Not Found
Issue: ProfileHub classes not found
Solution: Clear cache: php artisan config:clear && php artisan cache:clear