This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Is there any way of usage native Laravel Facades?
For example, I want to use Cache::put()
or Cache::forget()
.
And in addition, I want to use scheduler to run some tasks.
I need to parse some information every 10 minutes and write it into html file. How can I realize this?
Thank you in advance.
Last updated
Just stick a use statement at the top of your class
use Cache;
// use DB, use Session, use Cookie, etc...
Last updated
Scott said:
Just stick a use statement at the top of your class
use Cache; // use DB, use Session, use Cookie, etc...
This is the result:
The use statement with non-compound name 'Cache' has no effect /home/new_nosgoth/public_html/modules/cms/classes/CodeParser.php(189) : eval()'d code line 2
1-4 of 4