Skip to content

Commit 1279d47

Browse files
Merge pull request #206 from JulianPrieber/dev
Update to Laravel 9
2 parents a7d028c + 9758aa4 commit 1279d47

File tree

76 files changed

+13602
-9701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+13602
-9701
lines changed

.env

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,11 @@ ALLOW_CUSTOM_CODE_IN_THEMES=true
8888

8989
#ENABLE_THEME_UPDATER=Determines if the theme updater should be enabled or not, default is true.
9090
#=ENABLE_THEME_UPDATER either true or false.
91-
ENABLE_THEME_UPDATER=true
91+
ENABLE_THEME_UPDATER=true
92+
93+
#Needs to be configured first.
94+
#Read more at: https://s.llc.ovh/social-login
95+
ENABLE_SOCIAL_LOGIN=false
96+
97+
#Sets if a plain PNG or iframe should be used for the theme preview image
98+
USE_THEME_PREVIEW_IFRAME=true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Homestead.json
1111
Homestead.yaml
1212
npm-debug.log
1313
yarn-error.log
14+
_ide_*

LICENSE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,17 @@ Under: GPL-3.0 License (https://raw.githubusercontent.com/latuminggi/littlelink-
657657

658658

659659

660+
---------------------------------------- Merged forks: ----------------------------------------
661+
662+
663+
"Arcane Link" Copyright (C) Arcane Technology Solutions (https://github.com/arcane-technology)
664+
Under: GPL-3.0 License (https://raw.githubusercontent.com/arcane-technology/arcane-link/main/LICENSE)
665+
666+
667+
---------------------------------------- ------------ ----------------------------------------
668+
669+
670+
660671
----------------------------------- Third-Party licenses: -----------------------------------
661672

662673
#begin Hover (https://github.com/IanLunn/Hover)
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Admin;
4+
5+
use App\Http\Controllers\Controller;
6+
use App\Models\LinkType;
7+
use Illuminate\Http\Request;
8+
use \App\Http\Requests\LinkTypeRequest;
9+
10+
class LinkTypeController extends Controller
11+
{
12+
/**
13+
* Display a listing of the resource.
14+
*
15+
* @return \Illuminate\Http\Response
16+
*/
17+
public function index()
18+
{
19+
// get all the sharks
20+
$LinkTypes = LinkType::all();
21+
22+
// load the view and pass the link types
23+
return View('admin.linktype.index')
24+
->with('linktype', $LinkTypes);
25+
}
26+
27+
/**
28+
* Show the form for creating a new resource.
29+
*
30+
* @return \Illuminate\Http\Response
31+
*/
32+
public function create()
33+
{
34+
return View('admin.linktype.create');
35+
}
36+
37+
/**
38+
* Store a newly created resource in storage.
39+
*
40+
* @param \Illuminate\Http\Request $request
41+
* @return \Illuminate\Http\Response
42+
*/
43+
public function store(LinkTypeRequest $request)
44+
{
45+
// validate
46+
// read more on validation at http://laravel.com/docs/validation
47+
48+
$validated = $request->validated();
49+
50+
// store
51+
$LinkType = new LinkType;
52+
$LinkType->typename = $request->typename;
53+
$LinkType->title = $request->title;
54+
$LinkType->description = $request->description;
55+
$LinkType->icon = $request->icon;
56+
$LinkType->params = $request->params;
57+
$LinkType->save();
58+
59+
// redirect
60+
return Redirect('admin/linktype')
61+
->with('success', 'New link type has been added.');
62+
}
63+
64+
/**
65+
* Display the specified resource.
66+
*
67+
* @param \App\Models\LinkType $linkType
68+
* @return \Illuminate\Http\Response
69+
*/
70+
public function show(LinkType $linkType)
71+
{
72+
//
73+
}
74+
75+
/**
76+
* Show the form for editing the specified resource.
77+
*
78+
* @param \App\Models\LinkType $linkType
79+
* @return \Illuminate\Http\Response
80+
*/
81+
public function edit($id)
82+
{
83+
$lt = LinkType::find($id);
84+
// show the edit form and pass the shark
85+
return View('admin.linktype.edit', ['linktype' => $lt]);
86+
}
87+
88+
/**
89+
* Update the specified resource in storage.
90+
*
91+
* @param \Illuminate\Http\Request $request
92+
* @param \App\Models\LinkType $linkType
93+
* @return \Illuminate\Http\Response
94+
*/
95+
public function update(LinkTypeRequest $request, $id)
96+
{
97+
$linktype = LinkType::find($id);
98+
99+
$validated = $request->validated();
100+
101+
102+
// store
103+
$linktype->title = $request->title;
104+
$linktype->description = $request->description;
105+
$linktype->icon = $request->icon;
106+
$linktype->params = $request->params;
107+
$linktype->save();
108+
109+
// redirect
110+
return Redirect('admin/linktype')
111+
->with('success', 'Link type updated.');
112+
}
113+
114+
/**
115+
* Remove the specified resource from storage.
116+
*
117+
* @param \App\Models\LinkType $linkType
118+
* @return \Illuminate\Http\Response
119+
*/
120+
public function destroy($id)
121+
{
122+
// delete
123+
$linktype = LinkType::find($id);
124+
$linktype->delete();
125+
126+
// redirect
127+
return Redirect('admin/linktype')
128+
->with('success', 'Link type deleted');
129+
}
130+
}

0 commit comments

Comments
 (0)