Created
June 24, 2018 14:53
-
-
Save heryvandoro/447c5b55e7f9a44eb833ed41a2a79487 to your computer and use it in GitHub Desktop.
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\API; | |
class BarangController extends BaseAPIController | |
{ | |
public function __construct(){ | |
$model_name = "App\Models\Barang"; | |
self::$model = new $model_name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment