This is a demonstration of chunked upload in Laravel and Alpine JS. We are using the following additional liobraries for this demo:
This is a demonstration of uploading files to S3 compliant storage. This implementation is using Laravel (backend) and AlpineJS (frontend).
- User selects a file on frontend
- Javascript makes a request to the backend for getting a TemporaryUploadUrl.
- On receiving the signed, temporary URL, Javascript pushes the file to S3 directly from front-end.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
use Illuminate\Support\Collection; | |
use Spatie\MediaLibrary\HasMedia; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; | |
class MediaPropertyService | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Services; | |
class ZipDirectory | |
{ | |
public function __construct( | |
private string $sourcePath, | |
private ?string $outputPath = null, | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE `dokan`; | |
USE `dokan`; | |
CREATE TABLE customers ( | |
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
name VARCHAR(100) NOT NULL, | |
email VARCHAR(100), | |
phone CHAR(15), | |
PASSWORD CHAR(32), | |
created_at DATETIME DEFAULT CURRENT_TIMESTAMP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
db_course_mysql: | |
image: mysql:8.2 | |
command: --default-authentication-plugin=mysql_native_password | |
environment: | |
MYSQL_ROOT_PASSWORD: 123123 | |
ports: | |
- 3309:3306 | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use App\Models\User; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Validator; | |
class CreateUser extends Command | |
{ |
Slate comes with 3 built in aside class (i.e. notice, warning and success) for showing blocked notes.
Let's a new aside class pre
, that will show preformatted code in the middle column.
At the end of source/stylesheets/screen.css.scss
, add the following lines:
// Style an aside like to show code in middle column
Do you want this type of callouts in typora?
It's simple.
- Copy the contents of
callout.css
at the bottom of your userbase.user.css
file.- You'll the find the
base.user.css
in typora theme folder. (Preference > Appearance > "Open theme folder")
- You'll the find the
- If no
base.user.css
file is found in that folder, create one.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bp-filters-navbar .nav-item[filter-type="simple"]:not(.active) a:before { | |
content: '️️️⬜️ ' | |
} | |
#bp-filters-navbar .nav-item[filter-type="simple"].active a:before { | |
content: '️️️✅️ ' | |
} |
NewerOlder