Blade Directives @yield, @section, @include, @show, @stop, and @parent in Laravel

@yield and @section

@yield is just a shorthand for a @section. For @yield, it always gets the section from the child layout. That means it always overrides the  @yield part, even if it has a default defined as @yield('section', 'Default Content')

[...]

Continue reading

  • 249
  • 308
  • By Bablu Ahmed
  • Posted 4 months ago

Prototypes in JavaScript

All objects in JavaScript are instances of Object like a father of a Nation. When an object is created that inherits properties (including methods) from Object.prototype. These properties can be shadowed (overridd [...]

Continue reading

  • 249
  • 308
  • By Bablu Ahmed
  • Posted 4 months ago

What are Objects in JavaScript

In Javascript, objects are made by other objects. An object is a collection of key-value or name-value pairs. Each key-value pair is called a property.

A property’s value can be a function, an array, an object itself or any primitive data type i.e. integ [...]

Continue reading

  • 249
  • 308
  • By Bablu Ahmed
  • Posted 5 months ago