Closed ankitjain091997 closed 2 years ago
Hey! If you make a PR for this, I'd be willing to review it. I'm not sure how often other developers need to use different database connections, but if it's something that a lot of people need to do, I'd be willing to consider merging it 😄
yes, I did create PR and that is title "Database connectivity" , so please see my PR
i want to set database name for migration file but i don't see any option for set database name.so i tried like this
i changed file config/short-url.php like this :
and also changes - vendor/AshAllenDesign\ShortURL\Models\ShortURL.php AND vendor/AshAllenDesign\ShortURL\Models\ShortURLVisit.php
i added this line in both file
<?php class ShortURL extends Model {
protected $connected;
public function construct() { parent::construct(...func_get_args()); $this->connection = config('short-url.connection'); } }
?>