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
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter07/database/migrations/2017_06_20_133317_create_listings_table.php
Chapter07/database/migrations/2017_06_20_133317_create_listings_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateListingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('listings', fu...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter07/resources/lang/en/passwords.php
Chapter07/resources/lang/en/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are gi...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter07/resources/lang/en/pagination.php
Chapter07/resources/lang/en/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pag...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter07/resources/lang/en/validation.php
Chapter07/resources/lang/en/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter07/resources/lang/en/auth.php
Chapter07/resources/lang/en/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter07/resources/views/app.blade.php
Chapter07/resources/views/app.blade.php
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Vuebnb</title> <link rel="stylesheet" href="{{ asset('css/style.css') }}" type="text/css"> <link rel="stylesheet" hre...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/server.php
Chapter09/server.php
<?php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @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. Thi...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/User.php
Chapter09/app/User.php
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; /** * The attributes that are mass assignable. * * @var array */ ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Listing.php
Chapter09/app/Listing.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Listing extends Model { protected $casts = [ 'amenity_wifi' => 'boolean', 'amenity_pets_allowed' => 'boolean', 'amenity_tv' => 'boolean', 'amenity_kitchen' => 'boolean', 'amenity_breakfast' => 'boolean', ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Exceptions/Handler.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Kernel.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Controllers/Controller.php
Chapter09/app/Http/Controllers/Controller.php
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; class Controller extends BaseController { use AuthorizesReques...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Controllers/UserController.php
Chapter09/app/Http/Controllers/UserController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Input; class UserController extends Controller { public function toggle_saved() { $id = Input::get('id'); $user = Auth::user(); $saved = $user->saved;...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Controllers/ListingController.php
Chapter09/app/Http/Controllers/ListingController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Listing; use Illuminate\Support\Facades\Auth; class ListingController extends Controller { private function get_listing($listing) { $model = $listing->toArray(); for($i = 1; $i <=4; $i++) { $model['image_' ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Controllers/Auth/LoginController.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Controllers/Auth/ForgotPasswordController.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Controllers/Auth/ResetPasswordController.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Controllers/Auth/RegisterController.php
Chapter09/app/Http/Controllers/Auth/RegisterController.php
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class RegisterController extends Controller { /* |-------------------------------------------------------------------------- ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Middleware/RedirectIfAuthenticated.php
Chapter09/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 * @return mixed */ ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Middleware/TrustProxies.php
Chapter09/app/Http/Middleware/TrustProxies.php
<?php namespace App\Http\Middleware; use Illuminate\Http\Request; use Fideloper\Proxy\TrustProxies as Middleware; class TrustProxies extends Middleware { /** * The trusted proxies for this application. * * @var array */ protected $proxies; /** * The current proxy header mappings...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Middleware/TrimStrings.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Middleware/EncryptCookies.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Http/Middleware/VerifyCsrfToken.php
Chapter09/app/Http/Middleware/VerifyCsrfToken.php
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; class VerifyCsrfToken extends Middleware { /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ // ]; }
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Console/Kernel.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Providers/BroadcastServiceProvider.php
Chapter09/app/Providers/BroadcastServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Broadcast; class BroadcastServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { Broadcast::routes();...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Providers/RouteServiceProvider.php
Chapter09/app/Providers/RouteServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * This namespace is applied to your controller routes. * * In addition, it is set as th...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Providers/EventServiceProvider.php
Chapter09/app/Providers/EventServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\Event; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; class EventServiceProvider extends ServiceProvider { /** * The event listener mappings for the application. * * @var array */ protected...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Providers/AppServiceProvider.php
Chapter09/app/Providers/AppServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // } /** * Register any application services. * ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/app/Providers/AuthServiceProvider.php
Chapter09/app/Providers/AuthServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\Gate; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array */ protected $policies ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/bootstrap/app.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/bootstrap/autoload.php
Chapter09/bootstrap/autoload.php
<?php define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Composer Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/tests/TestCase.php
Chapter09/tests/TestCase.php
<?php namespace Tests; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { use CreatesApplication; }
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/tests/CreatesApplication.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/tests/Feature/ExampleTest.php
Chapter09/tests/Feature/ExampleTest.php
<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; class ExampleTest extends TestCase { /** * A basic test example. * * @return void */ public function testBasicTest() { $response = $this->get('/'); $response->assertS...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/tests/Unit/ExampleTest.php
Chapter09/tests/Unit/ExampleTest.php
<?php namespace Tests\Unit; use Tests\TestCase; use Illuminate\Foundation\Testing\RefreshDatabase; class ExampleTest extends TestCase { /** * A basic test example. * * @return void */ public function testBasicTest() { $this->assertTrue(true); } }
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/routes/web.php
Chapter09/routes/web.php
<?php use Illuminate\Support\Facades\Storage as Storage; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/routes/channels.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/routes/api.php
Chapter09/routes/api.php
<?php Route::get('/listing/{listing}', 'ListingController@get_listing_api'); Route::get('/', 'ListingController@get_home_api'); Route::get('/saved', 'ListingController@get_home_api'); Route::post('/user/toggle_saved', 'UserController@toggle_saved')->middleware('auth:api');
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/routes/console.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/public/index.php
Chapter09/public/index.php
<?php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @author Taylor Otwell <taylor@laravel.com> */ define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Auto Loader |------------------------------------...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/app.php
Chapter09/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
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/session.php
Chapter09/config/session.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option controls the default session "driver" that will be used on | requests. By defau...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/queue.php
Chapter09/config/queue.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Queue Driver |-------------------------------------------------------------------------- | | Laravel's queue API supports an assortment of back-ends via a single | API, giving you conven...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/cache.php
Chapter09/config/cache.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Cache Store |-------------------------------------------------------------------------- | | This option controls the default cache connection that gets used while | using this caching li...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/view.php
Chapter09/config/view.php
<?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/database.php
Chapter09/config/database.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/services.php
Chapter09/config/services.php
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Stripe, Mailgun, ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/filesystems.php
Chapter09/config/filesystems.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. T...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/mail.php
Chapter09/config/mail.php
<?php return [ /* |-------------------------------------------------------------------------- | Mail Driver |-------------------------------------------------------------------------- | | Laravel supports both SMTP and PHP's "mail" function as drivers for the | sending of e-mail. You may s...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/broadcasting.php
Chapter09/config/broadcasting.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Broadcaster |-------------------------------------------------------------------------- | | This option controls the default broadcaster that will be used by the | framework when an even...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/config/auth.php
Chapter09/config/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/seeds/ListingsTableSeeder.php
Chapter09/database/seeds/ListingsTableSeeder.php
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\DB; class ListingsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Load the file $path = base_path() . '/da...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/seeds/UsersTableSeeder.php
Chapter09/database/seeds/UsersTableSeeder.php
<?php use Illuminate\Database\Seeder; use App\User; use Illuminate\Support\Facades\Hash; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { User::create([ 'name' => 'Jane Smith', 'email'...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/seeds/DatabaseSeeder.php
Chapter09/database/seeds/DatabaseSeeder.php
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { public function run() { $this->call(ListingsTableSeeder::class); $this->call(UsersTableSeeder::class); } }
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/factories/ModelFactory.php
Chapter09/database/factories/ModelFactory.php
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/factories/UserFactory.php
Chapter09/database/factories/UserFactory.php
<?php use Faker\Generator as Faker; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your application. Factories pro...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/migrations/2014_10_12_000000_create_users_table.php
Chapter09/database/migrations/2014_10_12_000000_create_users_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/migrations/2014_10_12_100000_create_password_resets_table.php
Chapter09/database/migrations/2014_10_12_100000_create_password_resets_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePasswordResetsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('password...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/database/migrations/2017_06_20_133317_create_listings_table.php
Chapter09/database/migrations/2017_06_20_133317_create_listings_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateListingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('listings', fu...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/resources/lang/en/passwords.php
Chapter09/resources/lang/en/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are gi...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/resources/lang/en/pagination.php
Chapter09/resources/lang/en/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pag...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/resources/lang/en/validation.php
Chapter09/resources/lang/en/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator ...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/resources/lang/en/auth.php
Chapter09/resources/lang/en/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5
https://github.com/PacktPublishing/Full-Stack-Vue.js-2-and-Laravel-5/blob/072a41482c6a23b3f211a10cf8f4297145b856d0/Chapter09/resources/views/app.blade.php
Chapter09/resources/views/app.blade.php
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Vuebnb</title> <link rel="stylesheet" href="{{ asset('css/style.css') }}" type="text/css"> <link rel="stylesheet" hre...
php
MIT
072a41482c6a23b3f211a10cf8f4297145b856d0
2026-01-05T03:39:48.739384Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/bootstrap.php
src/bootstrap.php
<?php if(!defined('JEGARN_ROOT')){ define('JEGARN_ROOT', __DIR__); spl_autoload_register(function($class){ if(substr($class,0,6) === 'jegarn'){ $file = JEGARN_ROOT. '/' .str_replace('\\', '/', $class) . '.php'; if(file_exists($file)){ require_once $file; ...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/util/CurlUtil.php
src/jegarn/util/CurlUtil.php
<?php namespace jegarn\util; abstract class CurlUtil { public static function runCurl($url, $opts, &$info) { $ch = curl_init($url); curl_setopt_array($ch, $opts); $result = curl_exec($ch); $info = curl_getinfo($ch); curl_close($ch); return $result; } pub...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/util/FileUtil.php
src/jegarn/util/FileUtil.php
<?php namespace jegarn\util; abstract class FileUtil { public static function createDir($path, $mode = 0777, $touch = true, $deep = 3) { if ($path && !file_exists($path)) { $dirs = explode(DIRECTORY_SEPARATOR, trim($path,DIRECTORY_SEPARATOR)); $count = count($dirs); $...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/util/ConvertUtil.php
src/jegarn/util/ConvertUtil.php
<?php namespace jegarn\util; abstract class ConvertUtil { public static function arrayToObject($arr, $dst, $field = null){ if(null === $field){ foreach($arr as $k=>$v){ $dst->$k = $v; } }else{ foreach($field as $k=>$v){ $dst->$v...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/util/TextUtil.php
src/jegarn/util/TextUtil.php
<?php namespace jegarn\util; abstract class TextUtil { public static function isEmptyString($s){ return $s === null || $s === ''; } public static function generateGUID(){ return md5(uniqid(mt_rand(), true)); } }
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/cache/Cache.php
src/jegarn/cache/Cache.php
<?php namespace jegarn\cache; use Exception; use Redis; class Cache { private static $instance; private function __construct(){} private function __clone() {} /* @var Redis */ protected $cache; protected $config; public static function getInstance(){ if(null === self::$instance) s...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/ChatroomManager.php
src/jegarn/manager/ChatroomManager.php
<?php namespace jegarn\manager; use jegarn\cache\Cache; class ChatroomManager extends BaseManager{ public static function getInstance($class = __CLASS__){ return parent::getInstance($class); } /** * @param $rid * @return bool */ public function addChatroom(/** @noinspection P...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/GroupManager.php
src/jegarn/manager/GroupManager.php
<?php namespace jegarn\manager; use jegarn\cache\Cache; class GroupManager extends BaseManager{ public static function getInstance($class = __CLASS__){ return parent::getInstance($class); } /** * @param $gid * @return bool */ public function addGroup(/** @noinspection PhpUnus...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/OfflineGroupMessageManager.php
src/jegarn/manager/OfflineGroupMessageManager.php
<?php namespace jegarn\manager; use jegarn\cache\Cache; use jegarn\packet\Packet; use jegarn\util\ConvertUtil; class OfflineGroupMessageManager extends BaseOfflineMessageManager{ public static function getInstance($class = __CLASS__){ return parent::getInstance($class); } protected function get...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/BaseManager.php
src/jegarn/manager/BaseManager.php
<?php namespace jegarn\manager; use Exception; class BaseManager { private static $instance; private function __construct(){} private function __clone() {} /** * @param null $class * * @return static * @throws Exception */ public static function getInstance($class = nul...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/OfflineNotificationMessageManager.php
src/jegarn/manager/OfflineNotificationMessageManager.php
<?php namespace jegarn\manager; use jegarn\cache\Cache; use jegarn\util\ConvertUtil; class OfflineNotificationMessageManager extends BaseOfflineMessageManager{ public static function getInstance($class = __CLASS__){ return parent::getInstance($class); } protected function getCacheKey($id){ ...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/BaseOfflineMessageManager.php
src/jegarn/manager/BaseOfflineMessageManager.php
<?php namespace jegarn\manager; use jegarn\cache\Cache; use jegarn\util\ConvertUtil; use jegarn\packet\Packet; abstract class BaseOfflineMessageManager extends BaseManager{ public function addMessage($uid, $message){ Cache::getInstance()->rPush($this->getCacheKey($uid), $message); } public funct...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/UserManager.php
src/jegarn/manager/UserManager.php
<?php namespace jegarn\manager; use jegarn\cache\Cache; use jegarn\util\ConvertUtil; class UserManager extends BaseManager{ public static function getInstance($class = __CLASS__){ return parent::getInstance($class); } /** * account and password for user auth * when your application ha...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/SocketManager.php
src/jegarn/manager/SocketManager.php
<?php namespace jegarn\manager; use jegarn\log\Logger; use swoole_client; class SocketManager extends BaseManager { /** * @var swoole_client[] */ protected $clients; public static function getInstance($class = __CLASS__){ return parent::getInstance($class); } public function c...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/PacketManager.php
src/jegarn/manager/PacketManager.php
<?php namespace jegarn\manager; use jegarn\packet\Packet; use jegarn\session\Session; use jegarn\listener\PacketInterface; use jegarn\log\Logger; class PacketManager extends BaseManager { protected $listeners; public static function getInstance($class = __CLASS__){ return parent::getInstance($class)...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/ServerManager.php
src/jegarn/manager/ServerManager.php
<?php namespace jegarn\manager; use jegarn\server\Server; class ServerManager extends BaseManager { protected $server; /** * @param null|string $class * @return ServerManager|\jegarn\server\SwooleServer * @throws \Exception */ public static function getInstance($class = __CLASS__){ ...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/OfflineMessageManager.php
src/jegarn/manager/OfflineMessageManager.php
<?php namespace jegarn\manager; use jegarn\cache\Cache; use jegarn\packet\Packet; use jegarn\util\ConvertUtil; class OfflineMessageManager extends BaseOfflineMessageManager{ public static function getInstance($class = __CLASS__){ return parent::getInstance($class); } protected function getCache...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/manager/SessionManager.php
src/jegarn/manager/SessionManager.php
<?php namespace jegarn\manager; use jegarn\session\Session; use jegarn\listener\SessionInterface; use jegarn\cache\Cache; use jegarn\util\ConvertUtil; class SessionManager extends BaseManager{ protected $listeners; protected $fdSessionInfoMap;// fd => $userId."\t".$sessionId protected $fdNewSessionMap; ...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/session/SwooleSession.php
src/jegarn/session/SwooleSession.php
<?php namespace jegarn\session; class SwooleSession extends Session{ public $workerId; public function init($serverAddress, $serverPort, $clientAddress, $clientPort, $sessionId, $auth, $userId, $reachable, $fd, $workerId) { parent::init($serverAddress, $serverPort, $clientAddress, $clientPort, $sess...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/session/Session.php
src/jegarn/session/Session.php
<?php namespace jegarn\session; abstract class Session{ public $serverAddress; public $serverPort; public $clientAddress; public $clientPort; public $auth; public $userId; public $reachable; public $fd; public $sessionId; public function init($serverAddress, $serverPort, $cli...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/BufferProcessor.php
src/jegarn/server/BufferProcessor.php
<?php namespace jegarn\server; abstract class BufferProcessor { protected $idBufferMap; abstract public function init($id); abstract public function append($id, $buffer); abstract public function reset($id); abstract public function destroy($id); abstract public function consumePacket($id, &...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/HeadNServer.php
src/jegarn/server/HeadNServer.php
<?php namespace jegarn\server; abstract class HeadNServer extends Server { protected $readBuffer; public function onMessage($fd, $message){ } }
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/WebsocketBufferProcessor.php
src/jegarn/server/WebsocketBufferProcessor.php
<?php namespace jegarn\server; use swoole_buffer; class WebsocketBufferProcessor extends BufferProcessor{ const MIN_HEAD_LEN = 6; const MAX_HEAD_LEN = 14; const BINARY_TYPE_BLOB = "\x81"; const BINARY_TYPE_ARRAYBUFFER = "\x82"; protected $websocketType = sel...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/Server.php
src/jegarn/server/Server.php
<?php namespace jegarn\server; use jegarn\cache\Cache; use jegarn\manager\PacketManager; use jegarn\manager\SessionManager; use jegarn\session\Session; use jegarn\packet\Packet; use jegarn\util\ConvertUtil; use jegarn\util\TextUtil; abstract class Server{ protected $instance = null; protected $running...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/SwooleServer.php
src/jegarn/server/SwooleServer.php
<?php namespace jegarn\server; use jegarn\cache\Cache; use jegarn\manager\SessionManager; use jegarn\packet\Packet; use jegarn\session\Session; use jegarn\manager\SocketManager; use jegarn\util\ConvertUtil; use swoole_server; use jegarn\log\Logger; use jegarn\session\SwooleSession; /** * Class SwooleServer * @pack...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/SwooleWebServer.php
src/jegarn/server/SwooleWebServer.php
<?php namespace jegarn\server; use jegarn\packet\Packet; use jegarn\session\Session; use jegarn\manager\SessionManager; use jegarn\log\Logger; use swoole_server; use swoole_buffer; /** * Class SwooleWebServer * @package minions\server * @property swoole_buffer[] $fdReadBufferMap * @property swoole_buffe...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/HeaderNBufferProcessor.php
src/jegarn/server/HeaderNBufferProcessor.php
<?php namespace jegarn\server; class HeaderNBufferProcessor extends BufferProcessor{ protected $maxPacketLength = 0; protected $defaultBufferSize = 2048; protected $idBufferMap = null; protected $headerSize = 0; protected $packChar = null; public function __construct(...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/server/SwooleHeaderNBufferProcessor.php
src/jegarn/server/SwooleHeaderNBufferProcessor.php
<?php namespace jegarn\server; class SwooleHeaderNBufferProcessor extends HeaderNBufferProcessor{ public function append($id, $buffer){ $this->idBufferMap[$id] = $buffer; } public function reset($id){ $this->idBufferMap[$id] = ''; } public function destroy($id){ unset($t...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/log/FileLoggerHandler.php
src/jegarn/log/FileLoggerHandler.php
<?php namespace jegarn\log; class FileLoggerHandler implements LoggerHandler{ protected $levelFileInfo; public function __construct($levelFileInfo){ $this->levelFileInfo = $levelFileInfo; } public function addRecord($level, $message, $context = []){ if(isset($this->levelFileInfo[$le...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/log/Logger.php
src/jegarn/log/Logger.php
<?php namespace jegarn\log; class Logger{ const DEBUG = 100; const INFO = 200; const NOTICE = 250; const WARNING = 300; const ERROR = 400; const CRITICAL = 500; const ALERT = 550; const EMERGENCY = 600; public static $LEVELS = [ self::DEBUG => '...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/log/LoggerHandler.php
src/jegarn/log/LoggerHandler.php
<?php namespace jegarn\log; interface LoggerHandler{ public function addRecord($level, $message, $context = []); }
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/packet/AuthPacket.php
src/jegarn/packet/AuthPacket.php
<?php namespace jegarn\packet; use jegarn\manager\UserManager; class AuthPacket extends Packet { const STATUS_NEED_AUTH = 1; const STATUS_AUTH_SUCCESS = 2; const STATUS_AUTH_FAILED = 3; protected $type = 'auth'; public function getUid(){ return isset($this->content['uid']) ? $this->con...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/packet/GroupChatPacket.php
src/jegarn/packet/GroupChatPacket.php
<?php namespace jegarn\packet; class GroupChatPacket extends Packet { protected $type = 'groupchat'; public function getSubType() { return isset($this->content['type']) ? $this->content['type'] : null; } public function setSubType($value){ if(!isset($this->content['type'])){ ...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/packet/NotificationPacket.php
src/jegarn/packet/NotificationPacket.php
<?php namespace jegarn\packet; class NotificationPacket extends Packet { protected $type = 'notification'; public function getSubType() { return isset($this->content['type']) ? $this->content['type'] : null; } public function setSubType($value){ if(!isset($this->content['type'])){ ...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/packet/Packet.php
src/jegarn/packet/Packet.php
<?php namespace jegarn\packet; class Packet { protected $from; protected $to; protected $type; protected $content; public function getFrom() { return $this->from; } public function setFrom($from) { $this->from = $from; } public function getTo() { return ...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false
yaoguais/jegarn
https://github.com/yaoguais/jegarn/blob/4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae/src/jegarn/packet/ChatroomPacket.php
src/jegarn/packet/ChatroomPacket.php
<?php namespace jegarn\packet; class ChatroomPacket extends Packet { protected $type = 'chatroom'; public function __construct(){ $this->to = 'all'; } public function getSubType() { return isset($this->content['type']) ? $this->content['type'] : null; } public function setS...
php
Apache-2.0
4e560c7f3f1f35ae26f6fab2aa5c662d5ba1d6ae
2026-01-05T03:40:16.275284Z
false