how to unlink storage of laravel in window? - laravel

I'm moving my project from one system to another in which storage is not working properly. i need to refresh the link of storage but when itry php artisan storage:link it says already linked. But i need to refresh it what is should do ?

php artisan storage:link
The above command will create symbolic link in public/storage from storage/app/public
so when you move laravel project to new server then remove generated symbolic link folder from public/storage
Also, make sure to delete only the symbolic link folder not the original content also . Sometimes in Filezilla, it asks to choose the option to delete the original file also.
Another better option is not to move the symbolic link folder to a new server so you can create new symbolic link to storage folder

Related

I am trying to open Nova and getting directories instead of welcome page

I have set-up a Laravel-Nova project. And when i try to open this URL (htttps://localhost/81/App/nova) it opens up this folders directory instead of opening nova/login page.
I have followed all the instructions but still it's not getting resolved.
I have tried looking for solution of it but didn't find anything.
Use php artisan serve in your Terminal and then go to http://127.0.0.1:8000/nova or any link which is getting generated by your terminal. THANKS!

laravel storage folder converted into files while uploading on server

I am working on laravel 5.4. I have used laravel storage where I have uploded images. It works fine in local. But when I have created zip and uploaded it on server then the public/storage folder is damaged and converted into files. That's why images are not visible on website.
Then what I have do to resolve it. I have delete that files and created zip of storage folder and upload it on server. And unzip that folder then images are visible.
Now, I am facing the another issue. Images are not uploaded into the storage folder.
So how to prevent this issue?
I got solution for it. I have used putty to use terminal of server.
First I have deleted storage folder from the public directory. Secondly, I had open directory of project folder in terminal using putty. Then write command as below :
php artisan storage:link
Now, its working perfect. As well as it restore all the images.

Simple image gallery cannot write to cache folder even with permission set to 777

I am using a joomla plugin that shows multiple images inside a gallery. But whenever I add the code for the plugin inside an article I get this error:
Simple Image Gallery Notice: Joomla!'s /cache folder is not writable. Please correct this folder's permissions, clear your site's cache and retry.
So I connected to my website with FTP and changed the permissions of the cache folder located at administrator/cache to 777 (Permission for everything), but I keep getting this message.
What could be the cause of this? And is there a work-around?
Joomla has a cache folder directly in the joomla root. You have to set the permissions of this folder (e.g. /var/www/joomla/cache), but it looks like you set them of /var/www/joomla/administrator/cache.
If you are using centos, you can change selinux to permissive mode. It works.

Custom Pagination

I'm following the tutorial here in the docs:
Custom Presenters
But where do I place the Zurb Presenter class in my file system and how do I let Laravel know it exists?
There isn't really a defined place to put the actual file so you usually put it wherever feels the most natural to you. I'd probably create a presenters folder within your app folder and put it in there.
To let Laravel know where it is, there are a couple things you can do.
The first is adding it via composer. In your composer.json file, in the autoload classmap section, simply add your folder app/presenters. Then you will want to open up your command line, navigate to your project's directory, and run the command composer dump-autoload. Now it should automatically be loaded via composer.
The other solution would be to open up global.php in your app/start folder and add another entry in the ClassLoser::addDirectories() entry pointing to your new folder.
app_path().'/presenters',

Right Path For Custom Php Files Include Folder in Magento?

I need to include some custom Php files in Magento root directory. Right now i have used "Media" folder to include my custom Php files. So "Media" folder is right directory to use my custom Php Files?
Any Help Much Appreciate
Thanks.
Please refer this below site link for your reference:
Click here to refer your answer
media (directory) - This is the storage of the Magento media files - images out of the box, generated thumbnails, uploaded products images. It is also used as a container for importing images through the mass import/export tools.
lib (directory) - The Magento core code is located in this folder. It contains the software's PHP libraries.
I am not sure media(directory) is the right one or not. But this link is very helpful to you.

Resources