untuk menggunakan atau melempar exception pada blok try catch laravel berikut caranya
</p>
<p>try</p>
<p>{</p>
<p>throw new \Exception('ini exception');</p>
<p>}</p>
<p>catch (\Exception $e)<br />{<br />$e->getMessage()<br />}</p>
<p>
referensi :
- https://sahidkusuma.wordpress.com/2016/03/19/cara-menggunakan-try-and-catch-pada-laravel/
- https://dev.to/jackmiras/laravels-exceptions-part-2-custom-exceptions-1367
- https://www.bitdegree.org/learn/best-code-editor/php-try-catch-example-2


tinggalkan pesan