Skip to content

Instantly share code, notes, and snippets.

@InsiderPhD
Created November 29, 2021 15:07
Show Gist options
  • Save InsiderPhD/dda3b4f6f6522ae0297fd5f617d69347 to your computer and use it in GitHub Desktop.
Save InsiderPhD/dda3b4f6f6522ae0297fd5f617d69347 to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Controllers;
use App\Models\Email;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class EmailController extends AuthApiController
{
public function __construct()
{
parent::__construct(Email::class, 'user_id', 'Auth::id()');
}
use authIndex;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment