What is compact in laravel?



What is compact in laravel?..

Answer / Piyush Bagoria

Compact is a method in Laravel that is used for passing variables from the controller to the view. It automatically converts arrays and objects to their string representations before passing them to the view.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What is meant by Logging ?

2 Answers  


How can we use the custom table in laravel?

1 Answers  


How to start valet?

1 Answers  


In which directory controllers are kept in laravel?

1 Answers  


What is fluent query builder in laravel?

1 Answers  


Do you know laravel eloquent?

1 Answers  


Do you know laravel service container?

1 Answers  


What are laravel contract’s?

1 Answers  


What is csrf protection?

1 Answers  


What do you mean by laravel dusk?

1 Answers  


What is binding?

1 Answers  


What is algolia search?

1 Answers  


Categories