« first day (336 days earlier)      last day (1027 days later) » 

12:51 AM
[ NELQA ] Link to question Portuguese content detected
 
1:06 AM
[ NELQA ] Link to question Devanagari content detected
 
 
1 hour later…
3:58 AM
[ NELQA ] Link to question Vietnamese content detected
 
6:55 AM
[ NELQA ] Link to question Probably non-English question or VLQ
 
11:32 AM
[ NELQA ] Link to question Vietnamese content detected
 
 
1 hour later…
2:25 PM
[ NELQA ] Link to question Spanish content detected
 
4:10 PM
[ NELQA ] Link to question French content detected
 
user14929188
5:24 PM
@Dharman Can you help me with PSR-4?
 
sure
 
user14929188
I am trying to generate the autoload file but I got this error for all files Class Myapp\Data\Password located in Path/src\data\PasswordHash.php does not comply with psr-4 autoloading standard. Skipping.
 
What do you generate it with?
 
user14929188
composer
 
user14929188
composer dump-autoload -o
 
5:27 PM
ok
I assume your class name is Password and its namespace is `\Myapp\Data`
 
user14929188
Yes
 
Then you should put that class in a file 'src/Myapp/Data/Password.php'
Every folder is one level in your namespace. The file should be called exactly the same as the class
 
user14929188
No success :/
 
user14929188
Class Myapp\Data\Password located in C:/Users/Anne/Desktop/registration/src\Myapp\Data\PasswordHash.php does not comply with psr-4 autoloading standard. Skipping.
 
PasswordHash <> Password
 
@AnneBatch Did you get it to work after changing file name?
 
user14929188
5:58 PM
@Dharman No, even changing file name to the name of the class, the error is still there
 
user14929188
Now I realize the importance of Laravel... I think I really should learn
 
What does your JSON file look like?
 
user14929188
{
"autoload": {
"psr-4": {
"Myapp\\": "src/"
}
}
}
 
user14929188
Can I try to put the project on Github, then you can see?
 
Try "psr-4": { "": "src/" }
You mapped the namespace Myapp to src
 
user14929188
6:06 PM
@Dharman It worked for 4 classes, but I got the same error for other 3
 
Ok, can you give link to GH?
 
user14929188
Ok
 
user14929188
 
user14929188
Wait!
 
user14929188
@Dharman I just removed a directory on GH, you can check now
 
user14929188
You mean that I need to use the same name of the class in the files?
 
user14929188
@Dharman I fixed!
 
@AnneBatch Yes. Filename has to be the same as the class name
 
user14929188
Good, thanks
 
user14929188
Now my IDE is showing a lot of errors, so sad
 
user14929188
6:32 PM
I'm leaving
 
user14929188
See you, take care of yourself
 
see you
 
9:40 PM
[ NELQA ] Link to question Spanish content detected
 
user14929188
9:52 PM
@Dharman Can I ask a question? It's simple
 
yeah
 
user14929188
 
user14929188
Can I do it?
 
Which one?
 
user14929188
I think it's the same as you created, but now I'm checking for duplicated entries
 
user14929188
9:55 PM
You created that first line
 
it looks good
Is there anything in particular you are worried about?
 
user14929188
Hmm, yes!
 
user14929188
I don't want to take your time
 
user14929188
Gradually I'm learning. Thanks for helping me, it's great to have a professional giving tips, it makes me develop the right way :D
 
keep up the good work. The code above looks perfect as if you copied it from one of my SO posts :D
 
user14929188
10:09 PM
Hahaha
 

« first day (336 days earlier)      last day (1027 days later) »