Created
April 24, 2019 23:41
-
-
Save soubrunorocha/35fb7fb8048c869659fa47ac074a230e to your computer and use it in GitHub Desktop.
Exemplo 2 para APDA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
class Controller extends BaseController { | |
use AuthorizesRequests, DispatchesJobs, ValidatesRequests; | |
public function handleLog() | |
{ | |
//Função de Log | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class RandomController extends Controller | |
{ | |
/** | |
* Store a newly created resource in storage. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @return \Illuminate\Http\JsonResponse | |
*/ | |
public function store(Request $request) : \Illuminate\Http\JsonResponse | |
{ | |
$this->handleLog(); | |
//Salvando dados | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment