I need a variable to save it content in my database - the content I want are many domains logfiles on my server -- so like xyz.log
So in my path /var/www/laravel/logs/vhosts/
are all the logfiles and know I need to save them all in a variable
but I don't know how.. I'm able so save the contents of the log files in variables.. but not the name of the domains itself :/
I need something that save the content in a variable AND without the .log at the end!
Does anybody can say me how?