php - Framework multiple projects file update control -


i have create laravel framework website multiple projects. projects share same controllers, modal, etc. problem is, every time change inside of controller, have update each file each project.

is there software php laravel can me controller this, need update once (only change 1 file, file updated)?

/project_a/app/http/indexcontroller.php /project_b/app/http/indexcontroller.php /project_c/app/http/indexcontroller.php 

even though not idea. can write bash script automatically copy modified files server if have git, ssh access , linux. should this.

i used use script copy changed files on computer remote server.

mapfile -t lines < <(git ls-files --modified)  (( i=0; i<${#numbers[@]}; i++ )); echo ${numbers[i]}; done echo rsync -r "%s\n" "${lines[@]}" your/path/local:your/path/onserver/"${lines[@]}" 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -