LinkStack/database/seeders/ButtonSeeder.php
Julian Prieber 5b63080f8c Added custom spaces and headings
Added custom spaces and headings users can add like buttons to their littlelink pages to divide button sections into groups.

Spaces can be changed via the number in the title, and one space equals one "<br>". The maximum spaces that can be added with one space 'button' is capped at 10.

The 'Space' button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space's distance.

The 'Heading' button will be replaced with a sub-heading, where the title defines the text on that heading.
2022-05-06 15:26:39 +02:00

195 lines
3.1 KiB
PHP
Executable File

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Button;
class ButtonSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$buttons = [
[
'name' => 'custom'
],
[
'name' => 'custom_website'
],
[
'name' => 'github'
],
[
'name' => 'twitter'
],
[
'name' => 'instagram'
],
[
'name' => 'facebook'
],
[
'name' => 'messenger'
],
[
'name' => 'linkedin'
],
[
'name' => 'youtube'
],
[
'name' => 'discord'
],
[
'name' => 'twitch'
],
[
'name' => 'snapchat'
],
[
'name' => 'spotify'
],
[
'name' => 'reddit'
],
[
'name' => 'medium'
],
[
'name' => 'pinterest'
],
[
'name' => 'soundcloud'
],
[
'name' => 'figma'
],
[
'name' => 'kit'
],
[
'name' => 'telegram'
],
[
'name' => 'tumblr'
],
[
'name' => 'steam'
],
[
'name' => 'vimeo'
],
[
'name' => 'wordpress'
],
[
'name' => 'goodreads'
],
[
'name' => 'skoob'
],
[
'name' => 'tiktok'
],
[
'name' => 'default email'
],
[
'name' => 'default email_alt'
],
[
'name' => 'bandcamp'
],
[
'name' => 'patreon'
],
[
'name' => 'signal'
],
[
'name' => 'venmo'
],
[
'name' => 'cashapp'
],
[
'name' => 'gitlab'
],
[
'name' => 'mastodon'
],
[
'name' => 'paypal'
],
[
'name' => 'whatsapp'
],
[
'name' => 'xing'
],
[
'name' => 'buy me a coffee'
],
[
'name' => 'website'
],
[
'name' => 'header'
],
[
'name' => 'space'
],
];
Button::insert($buttons);
}
}