Call to undefined function theme()

Hi,

I have try to run my laravel project with the metronic template but there is an error :
In general.php line 31:

Call to undefined function theme()

could someone to assist to solve this issue.

thanks

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (6)

line 31 in the config>demo1>general.php should be refer to : 'dark-mode-enabled' => true, // Enable optional dark mode mode

// Layout
'layout' => array(
// Main
'main' => array(
'base' => 'default', // Set base layout: default|docs
'type' => 'default', // Set layout type: default|blank|none
'dark-mode-enabled' => true, // Enable optional dark mode mode
'primary-color' => '#009EF7', // Primary color used in email templates
),

Hi Ali,

Could you please clarify if you are working on the Metronic Laravel directly or using the HTML version for your own Laravel app?

Thanks

Hi Faizal,

I working on the Metronic Laravel directly extract from the template. is there any step or document to working directly from metronic laravel template?

Thanks

Hi Faizal,

I have follow this document and now working successfully. I start to explore the templates

Thanks

Glad it worked. Let us know if you have any issues.

Thanks

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(