repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/trait-self-instance.php | core/traits/trait-self-instance.php | <?php
namespace WPOnion\Traits;
defined( 'ABSPATH' ) || exit;
/**
* Trait Self_Instance
*
* @package WPOnion\Traits
* @author Varun Sridharan <varunsridharan23@gmail.com>
*/
trait Self_Instance {
/**
* Stores Self Instance.
*
* @var
*/
protected static $self_instance;
/**
* Creates Instance.
*
... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/trait-array-position.php | core/traits/trait-array-position.php | <?php
namespace WPOnion\Traits;
defined( 'ABSPATH' ) || exit;
/**
* Trait Serializable
*
* @package WPOnion\Traits
* @author Varun Sridharan <varunsridharan23@gmail.com>
*/
trait Array_Position {
/**
* Store Array Position.
*/
protected $position = 0;
/**
* Sets Position to 0
*/
public function rew... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/trait-json-serialize.php | core/traits/trait-json-serialize.php | <?php
namespace WPOnion\Traits;
defined( 'ABSPATH' ) || exit;
/**
* Trait Json_Serialize
*
* @package WPOnion\Traits
* @author Varun Sridharan <varunsridharan23@gmail.com>
*/
trait Json_Serialize {
/**
* @return mixed
* @uses \JsonSerializable
*/
public function jsonSerialize() {
return $this->get();
... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/magic-methods/trait-options.php | core/traits/magic-methods/trait-options.php | <?php
namespace WPOnion\Traits\Magic_Methods;
/**
* Trait Options Enables Magic Methods For Class_Option Trait.
*
* @package WPOnion\Traits\Magic_Methods
* @author Varun Sridharan <varunsridharan23@gmail.com>
*/
trait Options {
/**
* @param $name
* @param $value
*/
public function __set( $name, $value ) ... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/internal/trait-unique.php | core/traits/internal/trait-unique.php | <?php
namespace WPOnion\Traits\Internal;
defined( 'ABSPATH' ) || exit;
/**
* Trait Unique
*
* @package WPOnion\Traits\Internal
* @author Varun Sridharan <varunsridharan23@gmail.com>
* @since 1.5
*/
trait Unique {
/**
* unique for database.
*
* @var string
*/
protected $unique = '';
/**
* Returns ... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/internal/trait-theme-handler.php | core/traits/internal/trait-theme-handler.php | <?php
namespace WPOnion\Traits\Internal;
use WPO\Container;
use WPOnion\Themes;
defined( 'ABSPATH' ) || exit;
/**
* Trait Unique
*
* @package WPOnion\Traits\Internal
* @author Varun Sridharan <varunsridharan23@gmail.com>
* @since 1.5
*/
trait Theme_Handler {
/**
* Stores Current template information.
* c... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/internal/trait-module.php | core/traits/internal/trait-module.php | <?php
namespace WPOnion\Traits\Internal;
defined( 'ABSPATH' ) || exit;
/**
* Trait Unique
*
* @package WPOnion\Traits\Internal
* @author Varun Sridharan <varunsridharan23@gmail.com>
* @since 1.5
*/
trait Module {
/**
* Type - Value can be anything like (settings,text_field)
*
* @var string
*/
protect... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/internal/trait-object-id.php | core/traits/internal/trait-object-id.php | <?php
namespace WPOnion\Traits\Internal;
defined( 'ABSPATH' ) || exit;
/**
* Trait Object_ID
*
* @package WPOnion\Traits\Internal
* @author Varun Sridharan <varunsridharan23@gmail.com>
* @since {NEWVERSION}
*/
trait Object_ID {
/**
* unique for database.
*
* @var string
*/
protected $object_id = '';
... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/core/traits/internal/trait-fields-handler.php | core/traits/internal/trait-fields-handler.php | <?php
namespace WPOnion\Traits\Internal;
defined( 'ABSPATH' ) || exit;
/**
* Trait Fields
*
* @package WPOnion\Traits\Internal
* @author Varun Sridharan <varunsridharan23@gmail.com>
* @since 1.5
*/
trait Fields_Handler {
/**
* Fields
*
* @var string|array|\WPO\Builder
*/
protected $fields = array();
... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/data/icons.php | data/icons.php | <?php
/* Last Updated : 25/03/2021 - 10:46:23:am */
defined( 'ABSPATH' ) || exit;
use WPOnion\Helper as Helper;
wponion_add_icon_library( array(
'name' => __( 'Dashicons', 'wponion' ),
'slug' => 'dashicons',
'assets' => 'dashicons',
'css_prefix' => 'dashicons',
'icons' => 'wponion_icon_dash... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/data/currency.php | data/currency.php | <?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
return array(
'currency' => array(
'AED' => __( 'United Arab Emirates dirham', 'wponion' ),
'AFN' => __( 'Afghan afghani', 'wponion' ),
'ALL' => __( 'Albanian lek', 'wponion' ),
'AMD' => __( 'Armenian dram', 'wponion' ),
'ANG' => __( 'Netherlands Antillean gui... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/data/internal-options.php | data/internal-options.php | <?php
/**
* This file is used internally in WPOnion
* and this file should not be removed.
*/
$return = array();
$return['css-units'] = array(
'px' => 'px',
'%' => '%',
'em' => 'em',
'rem' => 'rem',
);
$return['text-align'] = array(
'start' => 'start',... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/data/fonts/google.php | data/fonts/google.php | <?php
// Last Updated : 2021-03-25 05:48:46:am
if ( ! defined( "ABSPATH") ) { die; }
return array (
'ABeeZee' =>
array (
400 => 'Regular 400',
'400italic' => 'Regular 400 Italic',
),
'Abel' =>
array (
400 => 'Regular 400',
),
'Abhaya Libre' =>
array (
400 => 'Regular 400',
500 =>... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | true |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/data/fonts/websafe.php | data/fonts/websafe.php | <?php
defined( 'ABSPATH' ) || exit;
return array(
'variants' => array(
'regular' => __( 'Regular', 'wponion' ),
'italic' => __( 'Italic', 'wponion' ),
'700' => __( '700', 'wponion' ),
'700italic' => __( '700 Italic', 'wponion' ),
'inherit' => __( 'inherit', 'wponion' ),
),
'fonts' => arra... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
wponion/wponion | https://github.com/wponion/wponion/blob/b45a110d3c12183fb26f4139c112be54a04931c3/data/fonts/backups.php | data/fonts/backups.php | <?php
defined( 'ABSPATH' ) || exit;
return array(
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
'"Arial Black", Gadget, sans-serif' => '"Arial Black", Gadget, sans-serif',
'"Bookman Old Style", serif' => '"Bookman Old Style", ... | php | MIT | b45a110d3c12183fb26f4139c112be54a04931c3 | 2026-01-05T04:06:38.851805Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/src/ServiceProvider.php | src/ServiceProvider.php | <?php
namespace ProtoneMedia\LaravelXssProtection;
use ProtoneMedia\LaravelXssProtection\Middleware\XssCleanInput;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use voku\helper\AntiXSS;
class ServiceProvider extends PackageServiceProvider
{
public function configu... | php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/src/Cleaners/BladeEchoes.php | src/Cleaners/BladeEchoes.php | <?php
namespace ProtoneMedia\LaravelXssProtection\Cleaners;
class BladeEchoes
{
protected $bladeEchoPatterns = [];
/**
* @see Illuminate\View\Compilers\Concerns\CompilesEchos::compileRawEchos
*/
public function __construct()
{
foreach (config('xss-protection.blade_echo_tags') as $pa... | php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/src/Middleware/XssCleanInput.php | src/Middleware/XssCleanInput.php | <?php
namespace ProtoneMedia\LaravelXssProtection\Middleware;
use Closure;
use Illuminate\Foundation\Http\Middleware\TransformsRequest;
use ProtoneMedia\LaravelXssProtection\Cleaners\BladeEchoes;
use ProtoneMedia\LaravelXssProtection\Events\MaliciousInputFound;
use Symfony\Component\HttpFoundation\File\UploadedFile;
... | php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/src/Events/MaliciousInputFound.php | src/Events/MaliciousInputFound.php | <?php
namespace ProtoneMedia\LaravelXssProtection\Events;
use Illuminate\Http\Request;
class MaliciousInputFound
{
public function __construct(
public array $sanitizedKeys,
public Request $originalRequest,
public Request $sanitizedRequest
) {
}
}
| php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/tests/Pest.php | tests/Pest.php | <?php
use ProtoneMedia\LaravelXssProtection\Tests\TestCase;
uses(TestCase::class)->in(__DIR__);
| php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/tests/TestCase.php | tests/TestCase.php | <?php
namespace ProtoneMedia\LaravelXssProtection\Tests;
use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use ProtoneMedia\LaravelXssProtection\ServiceProvider;
class TestCase extends Orchestra
{
protected function setUp(): void
{
parent::setUp();
... | php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/tests/MiddlewareTest.php | tests/MiddlewareTest.php | <?php
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use ProtoneMedia\LaravelXssProtection\Events\MaliciousInputFound;
use ProtoneMedia\LaravelXssProtection\Middleware\XssCleanInput;
use Symfony\Component\HttpKernel\Exception\HttpException;
beforeEach(function () ... | php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
protonemedia/laravel-xss-protection | https://github.com/protonemedia/laravel-xss-protection/blob/71b472720405237d8ac51d552c858656450b98a7/config/xss-protection.php | config/xss-protection.php | <?php
return [
'blade_echo_tags' => [
['{!!', '!!}'],
['{{', '}}'],
['{{{', '}}}'],
],
'middleware' => [
'allow_file_uploads' => true,
'allow_blade_echoes' => false,
'completely_replace_malicious_input' => true,
'terminate_request_on_malicious_inp... | php | MIT | 71b472720405237d8ac51d552c858656450b98a7 | 2026-01-05T04:07:57.188088Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/server.php | server.php | <?php
/**
* Laravel - A PHP Framework For Web Artisans.
*
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenie... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Exceptions/Handler.php | app/Exceptions/Handler.php | <?php
namespace App\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
//
];
/**
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Kernel.php | app/Http/Kernel.php | <?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/UpdateTagRequest.php | app/Http/Requests/UpdateTagRequest.php | <?php
namespace App\Http\Requests;
class UpdateTagRequest extends StoreTagRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermission('perms.moderator');
}
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/UpdateThemeRequest.php | app/Http/Requests/UpdateThemeRequest.php | <?php
namespace App\Http\Requests;
class UpdateThemeRequest extends StoreThemeRequest
{
//
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/DeleteThemeRequest.php | app/Http/Requests/DeleteThemeRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class DeleteThemeRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermission('... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/GenerateSitemapRequest.php | app/Http/Requests/GenerateSitemapRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class GenerateSitemapRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermissi... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/UpdatePostRequest.php | app/Http/Requests/UpdatePostRequest.php | <?php
namespace App\Http\Requests;
class UpdatePostRequest extends StorePostRequest
{
//
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/DestroyTagRequest.php | app/Http/Requests/DestroyTagRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class DestroyTagRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermission('p... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/StorePostRequest.php | app/Http/Requests/StorePostRequest.php | <?php
namespace App\Http\Requests;
use Carbon\Carbon;
use Illuminate\Foundation\Http\FormRequest;
class StorePostRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/StoreTagRequest.php | app/Http/Requests/StoreTagRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreTagRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermission('per... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/StoreThemeRequest.php | app/Http/Requests/StoreThemeRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreThemeRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermission('p... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/ContactRequest.php | app/Http/Requests/ContactRequest.php | <?php
namespace App\Http\Requests;
use App\Traits\CaptchaTrait;
use Illuminate\Foundation\Http\FormRequest;
class ContactRequest extends FormRequest
{
use CaptchaTrait;
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/DestroyPostRequest.php | app/Http/Requests/DestroyPostRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class DestroyPostRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermission('... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Requests/ThemeRequest.php | app/Http/Requests/ThemeRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ThemeRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $this->user()->hasPermission('perms.... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/BlogController.php | app/Http/Controllers/BlogController.php | <?php
namespace App\Http\Controllers;
use App\Models\Post;
use App\Models\Tag;
use App\Services\PostProcesses;
use Illuminate\Http\Request;
class BlogController extends Controller
{
/**
* Display a listing of the published blog posts.
*
* @return \Illuminate\Http\Response
*/
public functi... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Controller.php | app/Http/Controllers/Controller.php | <?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller extends BaseController
{
use AuthorizesReques... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/ContactController.php | app/Http/Controllers/ContactController.php | <?php
namespace App\Http\Controllers;
use App\Http\Requests\ContactRequest;
use App\Mail\ContactMail;
use Illuminate\Support\Facades\Mail;
class ContactController extends Controller
{
/**
* Show the application contact page.
*
* @return \Illuminate\Http\Response
*/
public function index()... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/HomeController.php | app/Http/Controllers/HomeController.php | <?php
namespace App\Http\Controllers;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard.
*
* @return \Il... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Admin/ThemesManagementController.php | app/Http/Controllers/Admin/ThemesManagementController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\DeleteThemeRequest;
use App\Http\Requests\StoreThemeRequest;
use App\Http\Requests\ThemeRequest;
use App\Http\Requests\UpdateThemeRequest;
use App\Services\BlogThemeServices;
use Illuminate\Http\Request;
use Illumin... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Admin/PostController.php | app/Http/Controllers/Admin/PostController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\DestroyPostRequest;
use App\Http\Requests\StorePostRequest;
use App\Http\Requests\UpdatePostRequest;
use App\Models\Post;
use App\Services\PostFormFields;
use Illuminate\Http\Request;
class PostController extends C... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Admin/AdminController.php | app/Http/Controllers/Admin/AdminController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\GenerateSitemapRequest;
use Illuminate\Support\Facades\Artisan;
use Spatie\Sitemap\Sitemap;
class AdminController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Admin/TagController.php | app/Http/Controllers/Admin/TagController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\DestroyTagRequest;
use App\Http\Requests\StoreTagRequest;
use App\Http\Requests\UpdateTagRequest;
use App\Models\Tag;
use App\Services\TagFormFields;
use Illuminate\Http\Request;
class TagController extends Control... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Auth/LoginController.php | app/Http/Controllers/Auth/LoginController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|----------------------------... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Auth/VerificationController.php | app/Http/Controllers/Auth/VerificationController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\VerifiesEmails;
class VerificationController extends Controller
{
/*
|--------------------------------------------------------------------------
| Email Verification Controller
|------------... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Auth/ForgotPasswordController.php | app/Http/Controllers/Auth/ForgotPasswordController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
class ForgotPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|----... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Auth/ResetPasswordController.php | app/Http/Controllers/Auth/ResetPasswordController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Auth/RegisterController.php | app/Http/Controllers/Auth/RegisterController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use jeremykenedy\LaravelRoles\Models\Role;
class RegisterController extends Controller
{
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Controllers/Api/BlogController.php | app/Http/Controllers/Api/BlogController.php | <?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\Post;
use App\Services\PostProcesses;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Validator;
class BlogController extends Controller
{
/**
* Create a new controller instance.
*
* @retur... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Middleware/Authenticate.php | app/Http/Middleware/Authenticate.php | <?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
*
* @return string
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Middleware/RedirectIfAuthenticated.php | app/Http/Middleware/RedirectIfAuthenticated.php | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
*
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Middleware/TrustProxies.php | app/Http/Middleware/TrustProxies.php | <?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array
*/
protected $proxies;
/**
* The headers that should be used t... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Middleware/TrimStrings.php | app/Http/Middleware/TrimStrings.php | <?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
class TrimStrings extends Middleware
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'password_conf... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Middleware/CheckForMaintenanceMode.php | app/Http/Middleware/CheckForMaintenanceMode.php | <?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware;
class CheckForMaintenanceMode extends Middleware
{
/**
* The URIs that should be reachable while maintenance mode is enabled.
*
* @var array
*/
protected $except = [
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Middleware/EncryptCookies.php | app/Http/Middleware/EncryptCookies.php | <?php
namespace App\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/Middleware/VerifyCsrfToken.php | app/Http/Middleware/VerifyCsrfToken.php | <?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
*
* @var bool
*/
protected $addHttpCookie = true;
/**
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Http/ViewComposers/BlogSettingsComposer.php | app/Http/ViewComposers/BlogSettingsComposer.php | <?php
namespace App\Http\ViewComposers;
use App\Services\BlogThemeServices;
use Illuminate\View\View;
class BlogSettingsComposer
{
protected $theme;
/**
* Create a new instance.
*
* @return void
*/
public function __construct()
{
$this->theme = BlogThemeServices::getBlogT... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Mail/ContactMail.php | app/Mail/ContactMail.php | <?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ContactMail extends Mailable
{
use Queueable;
use SerializesModels;
public $firstname;
public $lastname;
public $phone;
public $email;
public $messageLines;
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Logic/helpers.php | app/Logic/helpers.php | <?php
/**
* Return sizes readable by humans.
*/
function human_filesize($bytes, $decimals = 2)
{
$size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB'];
$factor = floor((strlen($bytes) - 1) / 3);
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)).@$size[$factor];
}
/**
* Is the mime type an image.
*/... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Traits/CaptchaTrait.php | app/Traits/CaptchaTrait.php | <?php
namespace App\Traits;
use Illuminate\Support\Facades\Input;
use ReCaptcha\ReCaptcha;
trait CaptchaTrait
{
/**
* Use Google ReCaptcha Service.
*
* @return bool ( description_of_the_return_value )
*/
public function captchaCheck()
{
$response = Input::get('g-recaptcha-resp... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/PostProcesses.php | app/Services/PostProcesses.php | <?php
namespace App\Services;
use App\Models\Post;
use App\Models\Tag;
use Carbon\Carbon;
class PostProcesses
{
protected $tag;
protected $postsData;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($tag)
{
$this->tag = $tag;
$t... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/Markdowner.php | app/Services/Markdowner.php | <?php
namespace App\Services;
use Michelf\MarkdownExtra;
use Michelf\SmartyPants;
class Markdowner
{
/**
* Prepare content to be saved as HTML.
*
* @param string $text
*
* @return string
*/
public function toHTML($text)
{
$text = $this->preTransformText($text);
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/BlogThemeServices.php | app/Services/BlogThemeServices.php | <?php
namespace App\Services;
use App\Models\BlogSetting;
use App\Models\Theme;
class BlogThemeServices
{
/**
* Return the blog theme.
*
* @param string $text
*
* @return string
*/
public static function getBlogTheme()
{
$self = new self();
return Theme::fin... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/PostAuthors.php | app/Services/PostAuthors.php | <?php
namespace App\Services;
use App\Models\Post;
use App\Models\User;
class PostAuthors
{
/**
* Get all the authors as a collection.
*
* @return
*/
public static function all()
{
$usernames = User::userNames()->get();
$authors = Post::authors()->get();
$allAv... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/PostFormFields.php | app/Services/PostFormFields.php | <?php
namespace App\Services;
use App\Models\Post;
use App\Models\Tag;
use Carbon\Carbon;
class PostFormFields
{
/**
* List of fields and default value for each field.
*
* @var array
*/
protected $fieldList = [
'title' => '',
'subtitle' => '',
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/TagFormFields.php | app/Services/TagFormFields.php | <?php
namespace App\Services;
class TagFormFields
{
/**
* List of fields and default value for each field.
*
* @var array
*/
private static $_fieldList = [
'tag' => '',
'title' => '',
'subtitle' => '',
'meta_description' =... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/SitemapCrawlProfile.php | app/Services/SitemapCrawlProfile.php | <?php
namespace App\Services;
use Psr\Http\Message\UriInterface;
use Spatie\Crawler\CrawlProfile;
class SitemapCrawlProfile extends CrawlProfile
{
/**
* Sitemap Cralwer Custom Crawl Profile.
*
* @param \Psr\Http\Message\UriInterface $url
*
* @return bool
*/
public function shoul... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Services/PostTemplates.php | app/Services/PostTemplates.php | <?php
namespace App\Services;
use Illuminate\Support\Facades\Storage;
class PostTemplates
{
/**
* Get all the post templates as a collection.
*
* @return array
*/
public static function list($type = 'post')
{
$dir = 'post-layouts';
if ($type != 'post') {
$d... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Console/Kernel.php | app/Console/Kernel.php | <?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Console/Commands/GenerateSitemap.php | app/Console/Commands/GenerateSitemap.php | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Spatie\Sitemap\SitemapGenerator;
class GenerateSitemap extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sitemap:generate {limit=-1}';
/**
* ... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Models/BlogSetting.php | app/Models/BlogSetting.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class BlogSetting extends Model
{
use SoftDeletes;
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'blog_settings';
/**
* The ... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Models/Tag.php | app/Models/Tag.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'tags';
/**
* The attributes that are not mass assignable.
*
* @var array
*/
protect... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Models/Theme.php | app/Models/Theme.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Theme extends Model
{
use SoftDeletes;
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'themes';
/**
* The attributes th... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Models/User.php | app/Models/User.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use jeremykenedy\LaravelRoles\Traits\HasRoleAndPermission;
class User extends Authenticatable
{
use HasRoleAndPermission;
use Notifiable;
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Models/Post.php | app/Models/Post.php | <?php
namespace App\Models;
use App\Services\Markdowner;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Feed\Feedable;
use Spatie\Feed\FeedItem;
class Post extends Model implements Feedable
{
use SoftDeletes;
/**
* The database table ... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Providers/BroadcastServiceProvider.php | app/Providers/BroadcastServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\ServiceProvider;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Broadcast::routes();... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Providers/RouteServiceProvider.php | app/Providers/RouteServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as th... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Providers/EventServiceProvider.php | app/Providers/EventServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
/*... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Providers/AppServiceProvider.php | app/Providers/AppServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(1... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Providers/AuthServiceProvider.php | app/Providers/AuthServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
'App\Model' => 'App\Polic... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Providers/ComposerServiceProvider.php | app/Providers/ComposerServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
View::composer(
'layouts.app',... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/app/Handlers/LfmConfigHandler.php | app/Handlers/LfmConfigHandler.php | <?php
namespace App\Handlers;
class LfmConfigHandler extends \UniSharp\LaravelFilemanager\Handlers\ConfigHandler
{
public function userField()
{
return parent::userField();
}
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/bootstrap/app.php | bootstrap/app.php | <?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of La... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/tests/CreatesApplication.php | tests/CreatesApplication.php | <?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/tests/Feature/PostsTest.php | tests/Feature/PostsTest.php | <?php
namespace Tests\Feature;
use App\Models\Post;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class PostsTest extends TestCase
{
use RefreshDatabase;
protected $postId;
protected $modifiedTitle;
/**
* Initial setup of contructor.
*
* @return void
*/
... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/tests/Feature/MarkdownerTest.php | tests/Feature/MarkdownerTest.php | <?php
namespace Tests\Feature;
use Tests\TestCase;
class MarkdownerTest extends TestCase
{
protected $markdown;
/**
* Initial setup of contructor.
*
* @return void
*/
public function setUp(): void
{
$this->markdown = new \App\Services\Markdowner();
}
/**
* A... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/tests/Feature/ExampleTest.php | tests/Feature/ExampleTest.php | <?php
namespace Tests\Feature;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$response = $this->get('/');
$response->assertStatus(200);
}
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/tests/Unit/ExampleTest.php | tests/Unit/ExampleTest.php | <?php
namespace Tests\Unit;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$this->assertTrue(true);
}
}
| php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/routes/web.php | routes/web.php | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/routes/channels.php | routes/channels.php | <?php
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callba... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/routes/api.php | routes/api.php | <?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/routes/console.php | routes/console.php | <?php
use Illuminate\Foundation\Inspiring;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bou... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/public/index.php | public/index.php | <?php
/**
* Laravel - A PHP Framework For Web Artisans.
*
* @author Taylor Otwell <taylor@laravel.com>
*/
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|---------------------------------------------------------... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/config/blog.php | config/blog.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Front End Application Name.
|--------------------------------------------------------------------------
*/
'name' => env('BLOG_APP_NAME', config('app.name')),
/*
|--------------------------... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/config/app.php | config/app.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
jeremykenedy/larablog | https://github.com/jeremykenedy/larablog/blob/8fc4d31c4f3b75ca104f7188fd724da63dc413d3/config/image.php | config/image.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Image Driver
|--------------------------------------------------------------------------
|
| Intervention Image supports "GD Library" and "Imagick" to process images
| internally. You may choose... | php | MIT | 8fc4d31c4f3b75ca104f7188fd724da63dc413d3 | 2026-01-05T04:08:08.107888Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.