rjvim / car
Add Comments, Actions, Reviews to your Laravel App
Installs: 4 707
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 5
Requires (Dev)
- orchestra/testbench: ~3.7.0
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2024-12-19 22:53:25 UTC
README
You can install the package via composer:
composer require rjvim/car
The package will automatically register itself.
You can publish the migration with:
php artisan vendor:publish --provider="Betalectic\Car\CarServiceProvider" --tag="migrations"
php artisan migrate
You can optionally publish the config file with:
php artisan vendor:publish --provider="Betalectic\Car\CarServiceProvider" --tag="config"
Documentation
comments:
First Initialise the CarComments helper as .
$carComments = new CarComments()
add Comment:
def: addComment($comment, $module, $user)
.
$carComments->addComment($newComment, $module, $user)
- $module and $user should be model instances.
update Comment:
def: updateComment($data, $commentId)
.
$carComments->updateComment($newComment, $commentId)
delete Comment:
def: deleteComment($commentId)
.
$carComments->deleteComment($commentId)
get Comments:
def: getComments($module = NULL, $user = NULL)
.
$carComments->getComments($module, $user)
License
The MIT License (MIT). Please see License File for more information.