I am new to Laravel and i am learning it .
What do we do in laravel to prevent sql injection ?? What is dependency injection and what do we do to prevent that ?
SQL injection is bad. Dependency injection is good. and its two separate things. SQL injection is an attack. Dependency injection is a technique used in programming.
Laravel uses PHP PDO to build run query. So don't worry too much about sql injection unless you do it wrong way.
Read about Service Container to learn about Laravel dependency injection.