Wallogit.com
2017 © Pedro Peláez
Profile photo camera support for Laravel Spark.
This package adds support for capturing images from your computer or phone camera., (*1)
Demo, (*2)
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)
@include('camera::camera-modal') right before closing the last div.<button type="button" class="btn btn-primary" :disabled="form.busy" @click="openCamera">Camera</button>.Edit resources/assets/js/spark-components/settings/profile/update-profile-photo.js:, (*7)
var camera = require('./update-profile-photo-camera'); at the top.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
configureWebcamjsmethod in yourupdate-profile-photo.jsfile., (*10)