Is there a good wysiwyg editor and file manager that i can upload image and video?

|
zack6849 2019-09-01 18:51:01
If it’s 777 it sure will be
zack6849 2019-09-01 18:51:23
Change the ownership to the webserver user and add yourself to the webservers group if you need read and write as well
Hfally 2019-09-01 18:51:31
zack6849 2019-09-01 18:51:01
If it’s 777 it sure will be

Well, thats true…

Hfally 2019-09-01 18:51:53
zack6849 2019-09-01 18:51:23
Change the ownership to the webserver user and add yourself to the webservers group if you need read and write as well

👍👍 thanks..

zack6849 2019-09-01 18:52:39
chmod 774 the directory, then chown it www-data or nignx or Apache depending on your webservers configuration
StanleyMasinde 2019-09-01 19:32:05
ErSoul 2019-08-30 20:43:50
Hello guys, I’ve build an API with Laravel, and now I want to send push notifications to the clients (a webapp build with VueJS, and android mobile client). Which is the ideal package for this task? WebPush or Pusher?

laravel_discuss-12231.jpg
Someone wants to hire Taylor Otwel as an intern 😂😂😂

StanleyMasinde 2019-09-01 19:32:43
zack6849 2019-09-01 18:52:39
chmod 774 the directory, then chown it www-data or nignx or Apache depending on your webservers configuration

755 for directories. 644 for files

zack6849 2019-09-01 19:33:56
no, group should be able to write as well.
zack6849 2019-09-01 19:34:30
otherwise if you login as your personal user and try to run artisian commands they might fail
StanleyMasinde 2019-09-01 19:35:15
zack6849 2019-09-01 19:33:56
no, group should be able to write as well.

Yes 755

zack6849 2019-09-01 19:35:43
no, now the group can only read and execute
StanleyMasinde 2019-09-01 19:37:02
zack6849 2019-09-01 19:35:43
no, now the group can only read and execute

My server is 755 and 644. Everything works fine

alexanderdavii 2019-09-01 19:37:11
Hfally 2019-09-01 18:45:23
On linux:

sudo chmod -R 777 storage/logs

Make sure you already CD’d into your project

i have selinux

zack6849 2019-09-01 19:37:19
yeah, but do you as a non-webserver user try to run artisan commands?
zack6849 2019-09-01 19:37:31
the only reason group perms are even relevant is the above
alexanderdavii 2019-09-01 19:37:33
alexanderdavii 2019-09-01 19:37:11
i have selinux

that mean i have 2 layers of permisstion

StanleyMasinde 2019-09-01 19:38:41
zack6849 2019-09-01 19:37:19
yeah, but do you as a non-webserver user try to run artisan commands?

Yes I do

zack6849 2019-09-01 19:38:43
for example, as your user, try touch storage/test
zack6849 2019-09-01 19:38:57
it should fail, because you don’t have write to that directory, just read and execute
StanleyMasinde 2019-09-01 19:39:39
zack6849 2019-09-01 19:38:57
it should fail, because you don’t have write to that directory, just read and execute

I am in the www-data group. Trust me everything is fine stop complicating things

zack6849 2019-09-01 19:43:19
you’re wrong, and here’s proof.
zack6849 2019-09-01 19:43:20
https://www.zcraig.me/files/YLyvhVj1UBPqN5e8aBC63IYeT.png

zack6849 2019-09-01 19:44:03
please don’t spread incorrect information unless you’re absolutley certain, especially with something as important as filesystem permissions for a webserver
StanleyMasinde 2019-09-01 19:45:10
zack6849 2019-09-01 19:44:03
please don’t spread incorrect information unless you’re absolutley certain, especially with something as important as filesystem permissions for a webserver

Please don’t spread incorrect information too. Where did you get that?

zack6849 2019-09-01 19:45:30
where did i get what….?
StanleyMasinde 2019-09-01 19:46:03
laravel_discuss-12251.jpg
This is a normal user. I’m able to write
zack6849 2019-09-01 19:46:19
you’re writing to an EXISTING file
StanleyMasinde 2019-09-01 19:46:34
zack6849 2019-09-01 19:46:19
you’re writing to an EXISTING file

You want a new file?

zack6849 2019-09-01 19:47:20
stat the directory it’s in and post your user groups
StanleyMasinde 2019-09-01 19:48:04
laravel_discuss-12255.jpg
There you go
zack6849 2019-09-01 19:48:25
yeah, now post perms of /v(ar?)/www
zack6849 2019-09-01 19:48:34
and again, post the groups stanley has.
ErSoul 2019-09-01 19:49:40
StanleyMasinde 2019-09-01 19:32:05
Someone wants to hire Taylor Otwel as an intern 😂😂😂

Wut?

zack6849 2019-09-01 19:50:12
laravel was initially posted in 2011, nobody really has 8 years of laravel, except taylor, basically.
StanleyMasinde 2019-09-01 19:51:52
zack6849 2019-09-01 19:48:34
and again, post the groups stanley has.

Let me check

StanleyMasinde 2019-09-01 19:55:18
laravel_discuss-12262.jpg

zack6849 2019-09-01 19:55:40
now the permissions of var/www ……
gabrielmoraesp 2019-09-01 20:21:35
Someone work proxy load balancer?
ransikoo 2019-09-02 06:43:39
i want use cache in my pages and this view use query in controller. now i can or notcan use cache?
eAmirGH 2019-09-02 06:57:20
ransikoo 2019-09-02 06:43:39
i want use cache in my pages and this view use query in controller. now i can or notcan use cache?

you can use varnish

farshidrezaeii 2019-09-02 09:14:29
ransikoo 2019-09-02 06:43:39
i want use cache in my pages and this view use query in controller. now i can or notcan use cache?

$value = Cache::rememberForever(‘users’, function () {
return DB::table(‘users’)->get();
});

Nomiilk 2019-09-02 11:14:34
Please how can see a conceptual model of my database using laravel?
Erfan1999_sh 2019-09-02 11:48:13
hello is there a good wysiwyg editor and file manager that i can upload image and video?I used unisharp but i can’t upload any video files it not support mp4 or wmv or another
praneet81 2019-09-02 12:26:04
Erfan1999_sh 2019-09-02 11:48:13
hello is there a good wysiwyg editor and file manager that i can upload image and video?I used unisharp but i can’t upload any video files it not support mp4 or wmv or another

editorjs

Singhm123 2019-09-02 13:27:38
Anyone here How implement SSO using LDAP ?
loveycom 2019-09-02 17:33:21
Hello, I need help please.
I want to ensure that whenever I call my static method Class::method() or Class::$proptery, the class is not re-instantiated? I have tried many things and it does not seem to be working.
loveycom 2019-09-02 17:36:06
These are my logic:
if(empty(Class::$token)) {
Class::authenticate();
} else {
Class::verifyToken();
}

Here, I want to ensure that I do not need to authenticate every request. Since I will have token returned after the first authentication, hence store the token in static property called token.

zack6849 2019-09-03 01:55:31
loveycom 2019-09-02 17:33:21
Hello, I need help please.
I want to ensure that whenever I call my static method Class::method() or Class::$proptery, the class is not re-instantiated? I have tried many things and it does not seem to be working.

Singletons are what you’re looking for

DesolatorMagno 2019-09-03 02:15:59
loveycom 2019-09-02 17:33:21
Hello, I need help please.
I want to ensure that whenever I call my static method Class::method() or Class::$proptery, the class is not re-instantiated? I have tried many things and it does not seem to be working.


See this, will help you.

Laravel 6 Advanced – e1 – Service ContainerYouTube
It would only be fitting that cover one of the most fundamental advanced concepts in Laravel as a first episode. The service container is primary building block of any Laravel Application

For the best experience, follow along in our interactive school at https://www.coderstape.com

Documentation
https://laravel.com/docs/6.0/container

DigitalOcean Referral
https://m.do.co/c/7dce5364ef4d

Hit us up on Twitter with any questions or comments @codertape (https://twitter.com/CodersTape)

About This Course

Ready to level up your Laravel skills? This series is for you, follow along as we uncover the advanced Laravel features that actually make Laravel the most popular php framework. We’ll have lot of tips and tricks along the way. Are you ready?

79423 2019-09-03 04:08:53
how would you test a third party API? should i hit thier API when testing the integration?
|