Skip to content

Commit

Permalink
Initial renaming of namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vicgonvt committed May 23, 2019
1 parent 23fb1f8 commit 991db52
Show file tree
Hide file tree
Showing 71 changed files with 226 additions and 228 deletions.
16 changes: 8 additions & 8 deletions composer.json
@@ -1,30 +1,30 @@
{
"name": "vicgonvt/lara-press",
"description": "An elegant markdown powered Blog for the Laravel Framework.",
"name": "coderstape/press",
"description": "An elegant markdown blog package for the Laravel Framework.",
"keywords": [
"laravel",
"blog",
"markdown"
],
"require": {
"php": "^7.1.3",
"php": "^7.2.0",
"ext-json": "*",
"erusev/parsedown": "^1.7",
"kitetail/zttp": "^0.4.0",
"laravel/framework": "~5.7.7"
"laravel/framework": "~5.8.0"
},
"require-dev": {
"mockery/mockery": "^1.2",
"orchestra/testbench": "^3.0"
},
"autoload": {
"psr-4": {
"vicgonvt\\LaraPress\\": "src/"
"coderstape\\press\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"vicgonvt\\LaraPress\\Tests\\": "tests/"
"coderstape\\press\\Tests\\": "tests/"
}
},
"license": "MIT",
Expand All @@ -40,10 +40,10 @@
"extra": {
"laravel": {
"providers": [
"vicgonvt\\LaraPress\\LaraPressBaseServiceProvider"
"coderstape\\press\\LaraPressBaseServiceProvider"
],
"aliases": {
"LaraPress": "vicgonvt\\LaraPress\\Facades\\LaraPress"
"LaraPress": "coderstape\\press\\Facades\\LaraPress"
}
}
}
Expand Down
20 changes: 10 additions & 10 deletions config/larapress.php → config/press.php
Expand Up @@ -14,10 +14,10 @@
*/

'blog' => [
'title' => 'My LaraPress Blog',
'site_name' => 'My LaraPress Blog',
'title' => 'My Laravel Press Blog',
'site_name' => 'My Laravel Press Blog',
'description' => 'An elegant markdown blog powered by Laravel.',
'author' => 'LaraPress',
'author' => 'Coder\'s Tape',
'keywords' => 'laravel, markdown, blog',
'image' => 'path/to/logo.png',
'copyright' => 'Copyright Information',
Expand All @@ -29,7 +29,7 @@
| Source Driver
|--------------------------------------------------------------------------
|
| LaraPress allows you to select a driver that will be used for storing
| Press allows you to select a driver that will be used for storing
| the blog posts. By default, the file driver is used, however, other
| drivers are available, or write your own custom driver to suite.
|
Expand Down Expand Up @@ -89,11 +89,11 @@
|
| Adding a prefix to all of the tables used by this package avoids any
| collisions with any existing tables you may already have for your
| project. We have set a sensible default of 'larapress_TABLENAME'.
| project. We have set a sensible default of 'press_TABLENAME'.
|
*/

'prefix' => 'larapress_',
'prefix' => 'press_',

/*
|--------------------------------------------------------------------------
Expand All @@ -113,11 +113,11 @@
| Custom Theme
|--------------------------------------------------------------------------
|
| Specify any directory here where LaraPress should grab its themed view
| files from. You must implement all of the views that LaraPress calls
| Specify any directory here where Press should grab its themed view
| files from. You must implement all of the views that Press calls
| behind the scenes.
|
| Default: 'larapress::'
| Default: 'press::'
|
*/

Expand All @@ -129,7 +129,7 @@
|--------------------------------------------------------------------------
|
| When fetching the trendings for the blog post, you can limit how many
| visits you would like to have LaraPress use to calculate the trends.
| visits you would like to have Press use to calculate the trends.
| Depending on your blog's popularity, this number may need to be
| adjusted.
|
Expand Down
2 changes: 1 addition & 1 deletion database/factories/PostFactory.php
@@ -1,7 +1,7 @@
<?php

use Carbon\Carbon;
use vicgonvt\LaraPress\Post;
use coderstape\Press\Post;

$factory->define(Post::class, function (Faker\Generator $faker) {
return [
Expand Down
2 changes: 1 addition & 1 deletion database/factories/SeriesFactory.php
@@ -1,6 +1,6 @@
<?php

use vicgonvt\LaraPress\Series;
use coderstape\Press\Series;

$factory->define(Series::class, function (Faker\Generator $faker) {
$title = $faker->sentence(4);
Expand Down
2 changes: 1 addition & 1 deletion database/factories/TagFactory.php
@@ -1,6 +1,6 @@
<?php

use vicgonvt\LaraPress\Tag;
use coderstape\Press\Tag;

$factory->define(Tag::class, function (Faker\Generator $faker) {
$name = $faker->sentence(4);
Expand Down
4 changes: 2 additions & 2 deletions database/factories/TrendingFactory.php
@@ -1,7 +1,7 @@
<?php

use vicgonvt\LaraPress\Post;
use vicgonvt\LaraPress\Trending;
use coderstape\Press\Post;
use coderstape\Press\Trending;

$factory->define(Trending::class, function (Faker\Generator $faker) {
return [
Expand Down
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use vicgonvt\LaraPress\Migration;
use coderstape\Press\Migration;

class CreateBlogsTable extends Migration
{
Expand Down
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use vicgonvt\LaraPress\Migration;
use coderstape\Press\Migration;

class CreatePostTagTable extends Migration
{
Expand Down
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use vicgonvt\LaraPress\Migration;
use coderstape\Press\Migration;

class CreatePostsTable extends Migration
{
Expand Down
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use vicgonvt\LaraPress\Migration;
use coderstape\Press\Migration;

class CreateSeriesTable extends Migration
{
Expand Down
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use vicgonvt\LaraPress\Migration;
use coderstape\Press\Migration;

class CreateTagsTable extends Migration
{
Expand Down
Expand Up @@ -2,7 +2,7 @@

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use vicgonvt\LaraPress\Migration;
use coderstape\Press\Migration;

class CreateTrendingsTable extends Migration
{
Expand Down
4 changes: 2 additions & 2 deletions resources/views/app.blade.php
@@ -1,8 +1,8 @@
@extends('larapress::layout')
@extends('press::layout')

@section('content')

<h1>LaraPress - <i>Hot off the press</i></h1>
<h1>Press - <i>Hot off the press</i></h1>


@endsection
8 changes: 4 additions & 4 deletions resources/views/layout.blade.php
Expand Up @@ -4,9 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=1280">
<meta name="csrf-token" content="{{ csrf_token() }}">
@include('larapress::meta')
@include('press::meta')

<title>@yield('title', 'LaraPress - Hot off the press')</title>
<title>@yield('title', 'Press - Hot off the press')</title>

<!-- Fonts -->

Expand All @@ -16,9 +16,9 @@

<body class="font-sans">

@include('larapress::nav')
@include('press::nav')

<div id="larapress" class="container mx-auto">
<div id="press" class="container mx-auto">
<div class="">
@yield('content')
</div>
Expand Down
20 changes: 10 additions & 10 deletions resources/views/meta.blade.php
@@ -1,15 +1,15 @@
<meta name="robots" content="index, follow" />
<meta http-equiv="expires" content="31536000"/>

<meta name="description" content="{{ app('LaraPress')->meta('description') }}">
<meta name="author" content="{{ app('LaraPress')->meta('author') }}" />
<meta name="copyright" content="{{ app('LaraPress')->meta('copyright') }}" />
<meta name="keywords" content="{{ app('LaraPress')->meta('keywords') }}" />
<meta name="description" content="{{ app('Press')->meta('description') }}">
<meta name="author" content="{{ app('Press')->meta('author') }}" />
<meta name="copyright" content="{{ app('Press')->meta('copyright') }}" />
<meta name="keywords" content="{{ app('Press')->meta('keywords') }}" />

<meta property="og:type" content="article" />
<meta property="og:title" content="{{ app('LaraPress')->meta('title') }}" />
<meta property="og:url" content="{{ app('LaraPress')->meta('url') }}" />
<meta property="og:description" content="{{ app('LaraPress')->meta('description') }}" />
<meta property="og:locale" content="{{ app('LaraPress')->meta('locale') }}" />
<meta property="og:site_name" content="{{ app('LaraPress')->meta('site_name') }}" />
<meta property="og:image" content="{{ app('LaraPress')->meta('image') }}" />
<meta property="og:title" content="{{ app('Press')->meta('title') }}" />
<meta property="og:url" content="{{ app('Press')->meta('url') }}" />
<meta property="og:description" content="{{ app('Press')->meta('description') }}" />
<meta property="og:locale" content="{{ app('Press')->meta('locale') }}" />
<meta property="og:site_name" content="{{ app('Press')->meta('site_name') }}" />
<meta property="og:image" content="{{ app('Press')->meta('image') }}" />
10 changes: 5 additions & 5 deletions resources/views/nav.blade.php
@@ -1,22 +1,22 @@
<nav class="flex items-center justify-between flex-wrap bg-teal p-6 mb-6">
<div class="container mx-auto flex">
<a href="{{ url(config('larapress.path')) }}">
<a href="{{ url(config('press.path')) }}">
<div class="flex items-center flex-no-shrink text-white mr-6">
<span class="font-semibold text-xl tracking-tight">LaraPress</span>
<span class="font-semibold text-xl tracking-tight">Press</span>
</div>
</a>

<div class="w-full block flex-grow lg:flex lg:items-center lg:w-auto">
<div class="text-sm lg:flex-grow">
<a href="{{ url(config('larapress.path') . '/posts') }}"
<a href="{{ url(config('press.path') . '/posts') }}"
class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
Posts
</a>
<a href="{{ url(config('larapress.path') . '/tags') }}"
<a href="{{ url(config('press.path') . '/tags') }}"
class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white mr-4">
Tags
</a>
<a href="{{ url(config('larapress.path') . '/series') }}"
<a href="{{ url(config('press.path') . '/series') }}"
class="block mt-4 lg:inline-block lg:mt-0 text-teal-lighter hover:text-white">
Series
</a>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/posts/index.blade.php
@@ -1,4 +1,4 @@
@extends('larapress::layout')
@extends('press::layout')

@section('content')

Expand Down
4 changes: 2 additions & 2 deletions resources/views/posts/show.blade.php
@@ -1,4 +1,4 @@
@extends('larapress::layout')
@extends('press::layout')

@section('content')

Expand All @@ -8,7 +8,7 @@
<h2><a href="{{ $post->series->path() }}">{{ $post->series->title }}</a></h2>
@endif

<p><a href="{{ url(config('larapress.path') . '/posts') }}">All posts</a></p>
<p><a href="{{ url(config('press.path') . '/posts') }}">All posts</a></p>

<img src="{{ $post->image() }}" alt="Cover image for the post {{ $post->title }}">

Expand Down
2 changes: 1 addition & 1 deletion resources/views/series/index.blade.php
@@ -1,4 +1,4 @@
@extends('larapress::layout')
@extends('press::layout')

@section('content')

Expand Down
4 changes: 2 additions & 2 deletions resources/views/series/show.blade.php
@@ -1,9 +1,9 @@
@extends('larapress::layout')
@extends('press::layout')

@section('content')

<h1>SERIES: {{ $series->title }}</h1>
<p><a href="{{ url(config('larapress.path') . '/posts') }}">All posts</a></p>
<p><a href="{{ url(config('press.path') . '/posts') }}">All posts</a></p>

<h3>Posts</h3>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/tags/index.blade.php
@@ -1,4 +1,4 @@
@extends('larapress::layout')
@extends('press::layout')

@section('content')

Expand Down
4 changes: 2 additions & 2 deletions resources/views/tags/show.blade.php
@@ -1,9 +1,9 @@
@extends('larapress::layout')
@extends('press::layout')

@section('content')

<h1>{{ $tag->name }}</h1>
<p><a href="{{ url(config('larapress.path') . '/posts') }}">All posts</a></p>
<p><a href="{{ url(config('press.path') . '/posts') }}">All posts</a></p>

<h3>Posts</h3>
<ul>
Expand Down
4 changes: 1 addition & 3 deletions routes/web.php
@@ -1,8 +1,6 @@
<?php

use Illuminate\Support\Facades\Route;

Route::view('/', 'larapress::app');
Route::view('/', 'press::app');

Route::get('posts', 'PostController@index');
Route::get('posts/{post}-{slug}', 'PostController@show');
Expand Down
8 changes: 4 additions & 4 deletions src/Actions/Database.php
@@ -1,10 +1,10 @@
<?php

namespace vicgonvt\LaraPress\Actions;
namespace coderstape\Press\Actions;

use vicgonvt\LaraPress\Post;
use vicgonvt\LaraPress\Series;
use vicgonvt\LaraPress\Tag;
use coderstape\Press\Post;
use coderstape\Press\Series;
use coderstape\Press\Tag;

class Database
{
Expand Down
2 changes: 1 addition & 1 deletion src/Blog.php
@@ -1,6 +1,6 @@
<?php

namespace vicgonvt\LaraPress;
namespace coderstape\Press;

class Blog extends Model
{
Expand Down

0 comments on commit 991db52

Please sign in to comment.