Larasocial | A social network app built with Laravel | Chat library
kandi X-RAY | Larasocial Summary
kandi X-RAY | Larasocial Summary
Larasocial is a simple but rich web application build on top of the Laravel framework. Inside you will find features such as friend requesting, chat between users, private messaging and more.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle the registration .
- Create a new message .
- Get paginated users .
- Send broadcast to all users
- Rename a file .
- Send a chat message .
- Generate fake data .
- Create the database schema .
- Checks if user belongs to user .
- Clean all tables .
Larasocial Key Features
Larasocial Examples and Code Snippets
Community Discussions
Trending Discussions on Larasocial
QUESTION
I have 2 tables, users and friend_requests, and I want to create foreign key, but getting following error.
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can't create table
larasocial
.#sql-1710_1f5
(errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter tablefriend_requests
add constraintfriend_requests_sender_id_foreign
foreign key (sender_id
) referencesusers
(id
) on delete cascade on update cascade)
users migration file
...ANSWER
Answered 2019-Dec-21 at 17:03The foreign key column need to be the same data type as the reference it's pointing to. Since your user id is big integer, your reference fields must also be big integers.
Edit for future viewers:
- change both columns to
unsignedBigInteger
QUESTION
Today I started a new project on my server. In my point of view I guess I had configured everything correct. However my .htaccess
seems not work correctly or it's ignored. I dont know why it's not working. The problem is that rewrite urls will show an 404.
The project based on Laravel 5.0 or more specified I will be try Larasocial. Larasocial is a social community based on Laravel 5.
I checked up my Vhosts and Htaccess file, but can't find the problem right know. Also try to restart the apache with service apache2 restart
and look if rewrite module is enabled for my apache. I guess everything should be okay.
Thanks in advance for helping me!
Now this are my Vhosts and Htaccesss.
...ANSWER
Answered 2017-Sep-17 at 12:44Lesseon learned I guess ...
After this article reviewed my apache.conf
. And what I see there?
Htaccess is not enabled for the /var/www
direcotry! Now the solution was quite simple I had to change AllowOverride None
to AllowOverride All
.
It fix the problem!
But and the end I had already a question. Before this article I thourght that the Vhost configuration will be the important configuration. So that AllowOverride is on All in the Vhost file, apache will take this configuration. Why apache2 needs the AllowOverride All configuration globally? Can anyone explaine?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Larasocial
Clone the project.
Install dependencies via composer.
Install javascript modules via npm
Migrate and seed the Database.
Run nodejs.
Run php server.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page