Skip to content

Instantly share code, notes, and snippets.

@meysampg
Created September 21, 2015 08:59
Show Gist options
  • Save meysampg/dcf8bb0bd4ba65b53b7c to your computer and use it in GitHub Desktop.
Save meysampg/dcf8bb0bd4ba65b53b7c to your computer and use it in GitHub Desktop.
Generate interface for model file on models folder
for fileName in $(ls ../models);
do
modelName=$(echo $fileName | cut -d "." -f 1);
echo "I${modelName}Interface.php generated.";
touch "I${modelName}Interface.php";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment