2017 © Pedro Peláez
 

package laravel-spark-camera

Profile photo camera support for Laravel Spark.

image

eusebiu/laravel-spark-camera

Profile photo camera support for Laravel Spark.

  • Friday, February 17, 2017
  • by cretueusebiu
  • Repository
  • 2 Watchers
  • 22 Stars
  • 474 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

Profile Photo Camera support for Laravel Spark

This package adds support for capturing images from your computer or phone camera., (*1)

Demo, (*2)

Installation

  • Run composer require eusebiu/laravel-spark-camera, (*3)

  • Add Eusebiu\LaravelSparkCamera\CameraServiceProvider::class to your providers array in config/app.php, (*4)

  • Run php artisan vendor:publish --provider="Eusebiu\LaravelSparkCamera\CameraServiceProvider" --tag=assets, (*5)

  • Edit resources/views/vendor/spark/settings/profile/update-profile-photo.blade.php:, (*6)

    • Add @include('camera::camera-modal') right before closing the last div.
    • Add the Camera button <button type="button" class="btn btn-primary" :disabled="form.busy" @click="openCamera">Camera</button>.
    • It should look like this.
  • Edit resources/assets/js/spark-components/settings/profile/update-profile-photo.js:, (*7)

    • Add var camera = require('./update-profile-photo-camera'); at the top.
    • Change the mixins option to mixins: [base, camera].
  • Run npm install --save webcamjs, (*8)

  • Run npm run dev, (*9)

This package uses WebcamJS, so if you want to configure it, overide the configureWebcamjs method in your update-profile-photo.js file., (*10)

The Versions

17/02 2017

dev-master

9999999-dev

Profile photo camera support for Laravel Spark.

  Sources   Download

MIT

29/10 2016

1.0.0

1.0.0.0

Profile photo camera support for Laravel Spark.

  Sources   Download

MIT

21/04 2016

0.1.0

0.1.0.0

Profile photo camera support for Laravel Spark.

  Sources   Download

MIT