Skip to content

Tag: php

Laravel 5.6 Custom method to call a view

I have application in laravel.When I try to access a custom method using URL localhost/blog/public/contact/myownview it doesn’t give any output. I want to redirect it to view called video. namespace …

How to find out from what URL a user came from

I work at a company, lets call it ‘A’, that got taken over by company ‘B’ but basically still is its own company. Now I have made an application, but my boss and I thought it would be a nice idea to change the design of the page depending on from which of the two company’s the us…

Multiple Socket Connection Using PHP

I have made a socket connection using php which is working perfectly below is the code for single socket but not working with multiple connections only accepts one connection at a time error_reporting(…

Laravel Users follow

I have this error SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘id’ in field list is ambiguous (SQL: select id, followers.user_id as pivot_user_id, followers.follows_id as pivot_follows_id, followers.created_at as pivot_created_at, followers.updated_at as pivot_updated_at from user…