The New Way to Build! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Learn More

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (6)


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



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



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
),


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(