• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Sliders in Laravel

phplaravel


PHP Snippet 1:

@foreach( $photos as $photo )
   <div class="carousel-item {{ $loop->first ? 'active' : '' }}">
       <img class="d-block img-fluid" src="{{ $photo->image }}" alt="{{ $photo->title }}">
          <div class="carousel-caption d-none d-md-block">
             <h3>{{ $photo->title }}</h3>
             <p>{{ $photo->descriptoin }}</p>
          </div>
   </div>
@endforeach`

Related Snippets

How to convert binary string to normal string in php

Laravel Model save() & update() Not Saving

Laravel Delete and Update

PHP: remove filename from path

Laravel 5.1 Unknown database type enum requested

How to install PHP composer inside a docker container

carbon generated datetime not stored correctly into the database

Laravel + phpunit + github actions = Failed asserting that '1' is identical to 1

virtctl works when executed via command line but not from php exec()

Change user role if checkout custom checkbox is checked in WooCommerce

Download & Save Zoom Recording in directory by PHP

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Transpose csv file data [duplicate]

OctoberCMS / Anonymous Global Scope

About Contact Privacy policy Terms and conditions