junaidnasir / larainvite Goto Github PK
View Code? Open in Web Editor NEWMAINTANER REQUIRED: User (signup) invitation package for laravel
License: MIT License
MAINTANER REQUIRED: User (signup) invitation package for laravel
License: MIT License
Hi, amazing work with this library. Can the latest version be used with Laravel 7?
I , and probably other users too, would like to have Laravel 6.0 supported by this package.
Hello,
I have no idea how to contact you directly, so I create this issue because I'm willing to be the new maintainer of this project.
I'm using it and currently working on a fork to meet our needs.
What would be the conditions to be the new maintainer ?
Regards,
Fred
Hello and +1 for this package. However I don't see how one can use this with multiple providers as in the system I am working with. Each of these providers can invite other users. I was thinking making the user_id
and user_type
as a morph()
will make it more suitable for flexible cases. Let me know what you think
Any plans to support Laravel 8?
For Laravel 7, I am getting: Class name must be a valid object or a string.
237 line : vendor/junaidnasir/larainvite/src/LaraInvite.php:237
Code of that line:
$this->instance = new $model;
You can see the screenshot > https://tinyurl.com/ydfwbkne
First of all, it's a great library.
I would like to propose a way to change the name of the attribute user_id into user_invitations table.
For instance, I've been working with the following settings:
Account
user_id
company_id
User
id
name
Company
id
name
In my case, the responsibility for making invitations is Account Model, instead of Auth/User.
Ok, I 'll save the account_id into user_invitations table as the user_id attribute, but if I could configure the name of the attribute, could be easy to identify the relation.
You understand that I mean?
Hey this is great package. I need user phone number because i m building social app. Can u add this functionality?
Thanks:D
Now that Laravel 10 is out it would be great if this package could support it ๐๐ป
If you want to invent a new user by it's phone
Hi, whe using is valid to validate a token, if the token is not in the DB it will throw a (PHP generic) exception, instead of returning false.
is this the intended behaviour?
I am new in Laravel. Can you please share some piece of application where you have used this package to full extent. Can you please explain the package's workflow and functionality a bit more. Can you please give a demo of how to make it work. @junaidnasir
Now that Laravel 9 is out it would be great if this package could support it ๐๐ป
What steps are needed to save some extra piece of information with an invite? For example, my users can send an invitation to an email address, asking them to join one of their owned "rooms". Obviously I can't send room-id to invited guy in the url (people can change it). In fact, I shouldn't be sending the room id to the recipient in any form. It should just be saved with the invitation at sending time. I would then retrieve it when the invited guy comes in and sends me the refCode.
See what I mean?
As title says, I want to be maintainer of the project.
I have contributed to it in the past.
Thank you.
Getting the following error when trying to install the package:
our requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires junaidnasir/larainvite ^6.0 -> satisfiable by junaidnasir/larainvite[v6.0.0].
- junaidnasir/larainvite v6.0.0 requires illuminate/support ^5.8|^6.0|^7.0|^8.0|^9.0|^10.0 -> found illuminate/support[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27
, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.3] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require junaidnasir/larainvite:*" to figure out if any version is installable, or "composer require junaidnasir/la
rainvite:^2.1" if you know which you need.
Hi there, I came across this issue while fixing a project. The database I am using is on a sql server (so maybe why no other have this issue?). The only way I could get your package to work is if I added this line to the save function in LaraInvite.php $this->instance->status = "pending";
.
Not too sure if that is correct but it works. Hopefully, this will help anyone who has the same issue.
Best,
Vanida
I think invitation must be unique per email !
Possible to get a bit more of an explanation of the events.
My eventsService Provider is
<?php
namespace App\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'junaidnasir.larainvite.invited' => [
'App\Listeners\userInvite',
],
];
/**
* Register any other events for your application.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
*/
public function boot(DispatcherContract $events)
{
parent::boot($events);
//
}
}
and if i create 'App\Listeners\userInvite' with the provided code it gives
ReflectionException in Container.php line 738: Class App\Listeners\userInvite does not exist
tried to use php artisan event:generate but could not get it to generate anything.
Not used the event system before so not sure what i should be seeing.
Hello,
I have this error when i tried to send an invitation to my user.
When I upgraded to version 4.x, I had to change the event listener like that:
Before
// App\Providers\EventServiceProvider
protected $listen = [
'junaidnasir.larainvite.invited' => [
'App\Listeners\UserInvite',
],
];
After
// App\Providers\
protected $listen = [
Invited::class => [
'App\Listeners\UserInvite',
],
];
After that, I had the following error:
Undefined property: Junaidnasir\Larainvite\Events\Invited::$email
For now, I found this fix:
Before
// App\Listeners\UserInvite
public function handle($invitation)
{
Mail::to($invitation->email)->send(new UserInviteMail($invitation->code, $invitation->email));
}
After
// App\Listeners\UserInvite
public function handle($invitation)
{
Mail::to($invitation->invitation->email)->send(new UserInviteMail($invitation->invitation->code, $invitation->invitation->email));
}
Please add new version and change fire to dispach
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.