Skip to content

Commit 6b6c808

Browse files
committed
Merge branch 'main' into 2.x
2 parents 870fc38 + c2b7495 commit 6b6c808

File tree

14 files changed

+317
-12
lines changed

14 files changed

+317
-12
lines changed

app/Models/Category.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Plugin\Models;
4+
5+
use Radiate\Database\Models\Term as Model;
6+
7+
class Category extends Model
8+
{
9+
/**
10+
* The taxonomy
11+
*
12+
* @var string
13+
*/
14+
protected static $taxonomy = 'category';
15+
}

app/Models/Page.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Plugin\Models;
4+
5+
use Radiate\Database\Models\Post as Model;
6+
7+
class Page extends Model
8+
{
9+
/**
10+
* The post type
11+
*
12+
* @var string
13+
*/
14+
protected static $postType = 'page';
15+
}

app/Models/Post.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Plugin\Models;
4+
5+
use Radiate\Database\Models\Post as Model;
6+
7+
class Post extends Model
8+
{
9+
/**
10+
* The post type
11+
*
12+
* @var string
13+
*/
14+
protected static $postType = 'post';
15+
}

app/Models/PostTag.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Plugin\Models;
4+
5+
use Radiate\Database\Models\Term as Model;
6+
7+
class PostTag extends Model
8+
{
9+
/**
10+
* The taxonomy
11+
*
12+
* @var string
13+
*/
14+
protected static $taxonomy = 'post_tag';
15+
}

app/Models/User.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Plugin\Models;
4+
5+
use Radiate\Database\Models\User as Model;
6+
7+
class User extends Model
8+
{
9+
//
10+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
namespace Plugin\Providers;
4+
5+
use Radiate\Support\ServiceProvider;
6+
7+
class PluginServiceProvider extends ServiceProvider
8+
{
9+
/**
10+
* Register the services
11+
*
12+
* @return void
13+
*/
14+
public function register()
15+
{
16+
//
17+
}
18+
19+
/**
20+
* Boot the services
21+
*
22+
* @return void
23+
*/
24+
public function boot()
25+
{
26+
//
27+
}
28+
}

app/Providers/RouteServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public function map()
2222
/**
2323
* Map the AJAX routes
2424
*
25+
* These routes all receive CSRF protection, etc.
26+
*
2527
* @return void
2628
*/
2729
public function mapAjaxRoutes()
@@ -33,6 +35,8 @@ public function mapAjaxRoutes()
3335
/**
3436
* Map the API routes
3537
*
38+
* These routes are stateless.
39+
*
3640
* @return void
3741
*/
3842
public function mapApiRoutes()
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace Plugin\Providers;
4+
5+
use Radiate\Foundation\Providers\ScheduleServiceProvider as ServiceProvider;
6+
use Radiate\Schedule\Schedule;
7+
8+
class ScheduleServiceProvider extends ServiceProvider
9+
{
10+
/**
11+
* Schedule events
12+
*
13+
* @param \Radiate\Schedule\Schedule $schedule
14+
* @return void
15+
*/
16+
public function schedule(Schedule $schedule)
17+
{
18+
//
19+
}
20+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require": {
2323
"php": "^7.3",
24-
"radiate/framework": "^1.0"
24+
"radiate/framework": "^2.0"
2525
},
2626
"scripts": {
2727
"post-create-project-cmd": [

config/app.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Asset URL
8+
|--------------------------------------------------------------------------
9+
|
10+
| This URL is used to properly generate URLs when using the UrlGenerator
11+
| class.
12+
|
13+
*/
14+
15+
'asset_url' => plugin_dir_url(base_path('index.php')) . 'assets/',
16+
17+
/*
18+
|--------------------------------------------------------------------------
19+
| Encryption Key
20+
|--------------------------------------------------------------------------
21+
|
22+
| This key is used by the Illuminate encrypter service and should be set
23+
| to a random, 32 character string, otherwise these encrypted strings
24+
| will not be safe. Please do this before deploying an application!
25+
|
26+
*/
27+
28+
'key' => env('RADIATE_KEY'),
29+
30+
'cipher' => 'AES-256-CBC',
31+
];

0 commit comments

Comments
 (0)