for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Domains\Customers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log;
use App\Customers;
class GetCustomerDetails
{
public function getDetails($custID)
$details = Customers::find($custID);
return $details;
}
protected function getParentID($custID)
return Customers::findOrFail($custID)->parent_id;