Class ‘App\Http\Controllers\DateTime’ not found – Laravel

1.71K views
no comments
26 Feb 2019 4:01 am

Laravel treat DateTime Class into his own class library and then its call from Laravel classes.

So you have you change it from and just add backslash \ before DateTime class

DateTime //not working
\DateTime //hope this will works.

NOTE:Your Email Address will be not shown and please do not add spamming comments because here is REL="NOFOLLOW" on your links and comments also moderated shown.
<code>Put html css or any language code under this tag</code>