What is the difference between contracts vs facades?



What is the difference between contracts vs facades?..

Answer / Nawabkhan

Contracts in Laravel define interfaces that a class must implement to be used by the framework. Facades are static classes that provide a simplified interface to complex functionality, but do not define any interfaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What is the use of php compact function?

1 Answers  


What is a laravel collection?

1 Answers  


How to clear complete cache in laravel?

1 Answers  


What is the difference between namespace and use in laravel?

1 Answers  


How to work with an Error in Laravel ?

2 Answers  


What is composer in laravel?

1 Answers  


What is the use of object relational mapping?

1 Answers  


What are the 3 service provider types?

1 Answers  


What are contracts?

1 Answers  


Explain the concept of events in laravel.

1 Answers  


Explain reverse routing in laravel.

1 Answers  


What are advantages of laravel?

1 Answers  


Categories