mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
bug fixing
This commit is contained in:
@@ -9,14 +9,14 @@ use Illuminate\Http\Request;
|
||||
class ContactController extends Controller
|
||||
{
|
||||
/**
|
||||
* list the company that belongs to user's company only
|
||||
*
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$contacts = Contact::where('user_id', Auth::user()->id)->where('id', $id)->first();
|
||||
$contacts = Contact::where('user_id', Auth::user()->id)->where('id', $id)->get();
|
||||
|
||||
if (!$contacts)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user