venturedrake / laravel-crm
A free open source CRM built as a package for laravel projects
Fund package maintenance!
venturedrake
Installs: 7 249
Dependents: 2
Suggesters: 0
Security: 0
Stars: 281
Watchers: 19
Forks: 106
Open Issues: 21
Requires
- php: ^8.0
- barryvdh/laravel-dompdf: ^2.0
- cknow/laravel-money: ^4.0|^5.0|^6.0|^7.0
- dcblogdev/laravel-xero: 1.1.3
- doctrine/dbal: ^2.0|^3.0
- guzzlehttp/guzzle: ^6.0|^7.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- kyslik/column-sortable: ^6.4
- lab404/laravel-auth-checker: ^1.6|^1.7|^2.0
- laracasts/flash: ^3.2
- laravel/legacy-factories: ^1.3
- livewire/livewire: ^1.0|^2.0
- mpdf/mpdf: ^7.0|^8.0
- owen-it/laravel-auditing: ^12.0|^13.0
- protonemedia/laravel-form-components: ^3.6
- rinvex/countries: ^6.0|^8.1
- spatie/laravel-permission: ^5.0
- venturedrake/laravel-encryptable: ^0.1.2
Requires (Dev)
- laravel/pint: ^1.10
- orchestra/testbench: ^4.0|^5.0|^6.0|^7.0
- phpstan/phpstan: ^0.12.65
- phpunit/phpunit: ^8.0|^9.0
- dev-master
- v1.x-dev
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- 0.19.10
- 0.19.9
- 0.19.8
- 0.19.7
- 0.19.6
- 0.19.5
- 0.19.4
- 0.19.3
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.1
- 0.18.0
- 0.17.1
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.1
- 0.14.0
- 0.13.0
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.0
- 0.10.1
- 0.10.0
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.8
- 0.6.7
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-develop
- dev-ticket/34-error-auth-guard-api-is-not-defined-when-running-php-artisan-dbseed-class=venturedrakelaravelcrmdatabaseseederslaravelcrmtablesseeder
- dev-ticket/33-class-appmodelsteam-not-found
This package is auto-updated.
Last update: 2024-11-15 07:37:46 UTC
README
The free Laravel CRM you have been looking for, this package will add CRM functionality to your laravel projects or can be used as a complete standalone CRM built with Laravel.
Use Cases
- Use as a free CRM for your business or your clients
- Build a custom CRM for your business or your clients
- Use as an integrated CRM for your Laravel powered business (Saas, E-commerce, etc)
- Use as a CRM for your Laravel development business
- Run a multi-tenant CRM Saas business
Features
- Dashboard
- Sales leads management
- Deal management
- Quote builder
- Send quotes with accept/reject functionality
- Orders & Invoicing
- Purchase orders
- Deliveries
- Kanban boards
- Activity Feed / Timelines
- Custom fields
- Customer management
- Contact database management
- Products & Product Categories
- Notes & Tasks
- File uploads
- Users & Teams
- Secure registration & login
- Laravel Jetstream/Spark teams support
- Roles & Permissions thanks to Spatie Permissions
- Model Audit logging thanks to Laravel Auditing
- Xero integration
Requirements
- PHP: 7.3 or higher
- For MySQL users: 5.7.23 or higher
- For MariaDB users: 10.2.7 or higher
- Laravel 6.0 or higher
Live Demo
https://demo.laravelcrm.com/register
Quick Start
If you want to get up and running quickly with a complete Laravel CRM please go to the laravel-crm-starter project.
If you prefer to install Laravel CRM into your own Laravel application, please follow the installation steps below.
Installation
Step 1. Install a Laravel project if you don't have one already
https://laravel.com/docs/installation
Step 2. Make sure you have set up authentication in your project
https://laravel.com/docs/authentication
Step 3. Require the current package using composer:
composer require venturedrake/laravel-crm
Step 4. Publish the migrations, config & assets
php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="migrations" php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="config" php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="assets" --force
Step 5. Update the various config settings in the published config file:
After publishing the package assets a configuration file will be located at config/laravel-crm.php
Please read the comments in this file for each setting. Most can be left as the default, however you will need to update the "CRM Owner" setting to access the CRM initially.
Please note if you set the route_prefix to blank or null you will need to update the default routes/web.php
file. All the crm routes are managed by the package, so it should look just as per below after removing the default welcome route and redirecting the default /home route to the dashboard.
Laravel 7 and below:
<?php use Illuminate\Support\Facades\Route; Auth::routes(); Route::get('/home', function (){ return redirect('/'); });
Laravel 8+:
<?php use Illuminate\Support\Facades\Route; Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () { return redirect('/'); })->name('dashboard');
Step 6. Run migrations:
php artisan migrate
Step 7. Run database seeder:
php artisan db:seed --class="VentureDrake\LaravelCrm\Database\Seeders\LaravelCrmTablesSeeder"
Step 8. Update User Model
- Add the HasCrmAccess, HasCrmTeams, HasRoles traits.
- Add the Lab404\AuthChecker\Models\HasLoginsAndDevices trait and the Lab404\AuthChecker\Interfaces\HasLoginsAndDevicesInterface interface.
use Illuminate\Foundation\Auth\User as Authenticatable; use Spatie\Permission\Traits\HasRoles; use VentureDrake\LaravelCrm\Traits\HasCrmAccess; use VentureDrake\LaravelCrm\Traits\HasCrmTeams; use Lab404\AuthChecker\Models\HasLoginsAndDevices; use Lab404\AuthChecker\Interfaces\HasLoginsAndDevicesInterface; class User extends Authenticatable implements HasLoginsAndDevicesInterface { use HasRoles; use HasCrmAccess; use HasCrmTeams; use HasLoginsAndDevices; // ... }
Step 9. Register at least one user and log in or if you already have a user login with the crm owner you set in step 5
Access the crm to register/login at http://your-project-url/crm
Note if you modified the route_prefix setting from the default the above url will change dependent on that setting.
Upgrade
Upgrading from >= 0.2
Step 1. Run the following to the update migrations and publish assets:
composer require venturedrake/laravel-crm php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="migrations" php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="config" php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="assets" --force php artisan migrate
Step 2. Run the database seeder
php artisan db:seed --class="VentureDrake\LaravelCrm\Database\Seeders\LaravelCrmTablesSeeder"
Step 3. If using teams support then run the following permissions update command
php artisan laravelcrm:permissions
Step 4. Run update command to update database
php artisan laravelcrm:update
Upgrading from < 0.2
Step 1. Run the following to the update package:
composer require venturedrake/laravel-crm php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="migrations" php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="config" php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="assets" --force php artisan migrate
Step 2. Delete previously published package views located in resources/views/vendor/laravel-crm/*
Step 3. Add HasCrmAccess, HasCrmTeams & HasRoles traits to App\User model, see installation Step 8.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Roadmap
- Documents
- Calendar
- CSV Import / Export
- SMS
- Payments
Feedback
Participate in the discord community
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email andrew@venturedrake.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.