Skip to content

Instantly share code, notes, and snippets.

View rosshristov's full-sized avatar

Rosen Hristov rosshristov

View GitHub Profile
@facundofarias
facundofarias / your_model.php
Created May 18, 2017 14:21
Add a watermark using laravel-medialibrary
...
->setManipulations([
'w' => 350,
'fm' => 'src',
'mark' => public_path('assets/img/watermark.png'),
'markfit' => 'fill',
'markpos' => 'center',
])
...
@jotaelesalinas
jotaelesalinas / Laravel-MakeConfig.php
Last active March 7, 2025 10:35
Laravel make:config artisan command
<?php
/*
* Run this artisan command before:
* php artisan make:command MakeConfig
*/
namespace App\Console\Commands;
use Illuminate\Console\Command;