Download the PHP package steadfastcollective/laravel-summit without Composer
On this page you can find all versions of the php package steadfastcollective/laravel-summit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download steadfastcollective/laravel-summit
More information about steadfastcollective/laravel-summit
Files in steadfastcollective/laravel-summit
Package laravel-summit
Short Description Powers Steadfast Collective's Summit platform and other apps.
License MIT
Homepage https://github.com/steadfast-collective/laravel-summit
Informations about the package laravel-summit
Summit
Introduction
This package powers Steadfast Collective's Summit platform and other apps. It provides a starting point for building video course applications.
Documentation
Installation
-
Install via Composer
- Run the
summit:install
command to publish Summit's files:
Migrations
During installation, you'll get the option to publish Summit's migrations. These migrations create a few tables (courses
, course_blocks
and videos
). These tables are used for some of Summit's built-in models. Feel free to add any columns to these as you wish.
Extending Models
Summit provides a set of models for things like Courses, Course Blocks and Videos. By default, these models live inside the Summit package. However, there may be cases where you want to add fillable properties, attributes or simply just want to override something we've done. And that's perfectly okay!
The recommended approach to doing this would be to create your own model file, like app/Models/Course.php
. Inside that, instead of extending the Model
class provided by Eloquent, extend the built-in Summit model. There's a demo of this below:
Depending on the model you're overriding, it may be necessary to tell Summit about your updated model. You can do this inside the configuration file published by Summit during install.
Laravel Nova
If you're using Laravel Nova within your application, you can optionally publish our base Nova resources. They're included as part of the summit:install
command. However, they will only be shown if we detect Nova is installed.
The Nova Resources will be published into your app/Nova
directory. Once published, you can customise them to your heart's content.
We're using Spatie's Eloquent Sortable package to handle ordering of course blocks when creating. To extend on this functionality with Laravel Nova, we suggest using the Nova Sortable package.
Video Storage
There's a couple of different places you can store your videos. Out of the box, we currently support uploading to Laravel's Filesystem and to api.video.
Laravel Filesystem
When you configure the filesystem driver, be sure to also configure a video_storage_disk
. This will be the disk (from your config/filesystems.php
) you wish to be use for storage.
When uploading video with the uploadVideo
method, you may pass in either an UploadedFile
(which is the output of $request->file('video')
) or you can pass a string containing the path to the video (useful if you're using Laravel Vapor).
api.video
When using our built-in api.video integration, you'll need to pull in our steadfastcollective/laravel-api-video
package. If you don't we'll just throw an exception to tell you off (just kidding, of course).
Unlike our Filesystem driver, you can only pass in a Video ID string to the uploadVideo
method when using api.video. The Video ID should be returned once the video has been uploaded successfully client-side.
Contributing
Before contributing, please read the our contibutors guide.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
All versions of laravel-summit with dependencies
illuminate/support Version ^8.0
spatie/eloquent-sortable Version ^3.11