Skip to content

Tag: php

How do I add a new key value pair to an object in PHP?

I guess my question is two-fold In Python if I do this I’ve created a dictionary In javaScript if I do the same thing I’ve created an object What is that in PHP? It could just be that I don’t know the terms I’m working on a project with laravel. I basically have an sqlite database whic…

Can’t find my Mailable class from Route::get

I’m getting this error in Laravel while trying to get from route method. My error is: Symfony Component Debug Exception FatalThrowableError (E_ERROR) Class ‘NewUserWelcomeMail’ not found My route method is: NewUserWelcomeMail class code is: I tried this as this video said but don’t…

Laravel: Not picking up __invoke method?

Trying to use invokable controllers, but it seems to fail to find the __invoke method? It seems to be returning true on: Routes: MainController: Answer Laravel by default assumes that your controllers will be located at AppHttpControllers. So when you’re adding the full path to your controller, Laravel …

what’s the With() method in laravel?

I had refer some online references for understanding what to do with With method in laravel but still not understand. Laravel with(): What this method does? Here are some codes which I’m not understand, may I know what the a,b,c,d,e,f refer to? Answer Let me give you a direct example. If you’ve us…