I want to get the path to the Storage funtion in laravel and read it in javascript,
The way I try to do this is :
var storagePath="<?php echo storage_path(); ?>";
console.log('StoragePath ',storagePath);
But this logs out a path like this :
StoragePath C:wampwwwd3projectFirststorage
I do need the slashes but seems like 'storage_page()' trims them , not sure if this is a security thing,can I still read the path to the folder using the string above or get the slashes untrimmed?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire