text stringlengths 2 1.03M |
|---|
<?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
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('internships', function (... |
<?php
function test_64166($data) {
$fd = fopen('php://temp', 'w+');
$res = stream_filter_append($fd, 'convert.quoted-printable-encode', STREAM_FILTER_WRITE, array(
'line-break-chars' => "\n",
'line-length' => 74
));
fwrite($fd, $data);
rewind($fd);
var_dump(stream_get_contents($fd, -1, 0))... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Text extends Model
{
public $table="pagecontents";
protected $fillable = [
'language_id',
'theme_title',
'annonce_title',
'goldprice_title',
'silverprice_title',
'latestnews_title',
'supportedcountries_title',
'r... |
@extends('layouts.app')
@section('content')
<div class="container">
<h1>{{ __('Category') }} : {{ $category->name }}</h1>
<h2>{{ __('Posts') }}</h2>
@include('post._listing')
{{ $posts->links() }}
</div>
@endsection |
<?php
namespace FactoryMethod\Tests;
use FactoryMethod\ItalianFactory;
use FactoryMethod\USAFactory;
use FactoryMethod\Vehicle;
use PHPUnit\Framework\TestCase;
class FactoryMethodTest extends TestCase
{
public function testCanItalianShop()
{
$factory = new ItalianFactory();
$vehicle = $factor... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable =[
'source','title','body','cover_image','category_id','card1','card2','card3','card4','card5','card6','card7','card8','youtube_url','card_guide1','card_guide2','card_guide3','card_guide4','car... |
<?php
namespace Calendarboard;
class CalendarIterator implements \Iterator {
private $_ = array();
public function __construct($array=array()) {
$this->_ = $array;
}
function __toString() {
$result = '';
foreach($this->_ as $date) {
$result .= $date . '<br />';
}
return $resu... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Core\TatucoModel;
class Person extends TatucoModel
{
protected $guarded = ['id'];
public function user()
{
return $this->belongsToMany(User::class, 'people_user', 'people_id', 'user_id');
}
} |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
/... |
<?php
/**
* Auth form grant access
*
* This template can be overridden by copying it to yourtheme/woocommerce/auth/form-grant-access.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibili... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Producto</div>
<div class="card-body">
{!! Form::model($product, [... |
<!-- Latest compiled and minified JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/pannellum@2.5.6/build/pannellum.css">
{{--@dd($project)--}}
<div id="modal360" cl... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PostImage extends Model
{
} |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Entrar') }}</div>
<div class="card-body">
<form method="POS... |
<?php
// Set the version hooks should use, currently Sugar only supports version 1.
$hook_version = 1;
// Initialize the hook array
$hook_array = Array();
// Initialize the hook type
$hook_array['before_save'] = Array();
// Add hook
/*
* Array Parameters
* 1 Hook Version
* 2 Hook Name
* 3 File Path
* 4 Class Na... |
<?php
// This file is part of Moodle - https://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... |
<?php
declare(strict_types=1);
namespace Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased;
use Roave\BackwardCompatibility\Change;
use Roave\BackwardCompatibility\Changes;
use Roave\BetterReflection\Reflection\ReflectionClassConstant;
use function sprintf;
use function var_export;
final class Cl... |
<?php
/**
* 退订短信
* User: bihua
* Date: 16/4/25
* Time: 16:40
*/
namespace App\Http\Dbs;
class TdPhoneDb extends JdyDb
{
protected $table = "td_phone";
public $timestamps = false;
public function addPhone($phone = ''){
if(empty($phone)){return false;}
$id = self::insertGetId(['phone'=... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Component\Shipping\Model;
use Doctrine\Common\Collections\Collection;
use Sylius\Com... |
<!-- Main content -->
<section class="content">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">Form Tambah Kliring UAS</h3>
</div>
<div class="box-body">
<?php echo validation_errors();
echo $this... |
<?php
/*
* This file is part of GitHub Profile Views Counter.
*
* (c) Anton Komarev <anton@komarev.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Komarev\GitHubProfileViewsCounter;
use C... |
<?php
/**
* @file
* Contains \Drupal\Console\Command\Update\EntitiesCommand.
*/
namespace Drupal\Console\Command\Update;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Entity\EntityStorageException;... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumnUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('user... |
@extends('layouts.default')
@section('title', 'Upload Berkas Konfirmasi Jadwal, Syarat & Ketentuan Audit, Surat Tugas, Berita Acara')
@push('css')
<link href="{{asset('/assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.css')}}" rel="stylesheet" />
@endpush
@section('content')
<!-- begin breadcru... |
<?php
namespace App\Http\Controllers;
use App\Models\PasienMasuk;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use App\Imports\PasienMasukImport;
use Carbon\Carbon;
use Exception;
use Maatwebsite\Excel\Facades\Excel;
class PasienMasukController extends Controller
{
public function index(Requ... |
<?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
namespace Doctrine\Tests\Common\Annotations\Fixtures\Traits;
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Template;
use Doctrine\Tests\Common\Annotations\Fixtures\Annotation\Route;
trait SecretRouteTrait
{
/**
* @Route("/secret", name="_secret")
* @Template()
*/
public funct... |
<?php
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/L... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CRUD com Laravel</title>
<!-- Favicon -->
<link href="{{URL::asset... |
<?php
/*
'软件名称:苹果CMS
'开发作者:MagicBlack QQ:479025 官方网站:http://www.maccms.com/
'--------------------------------------------------------
'适用本程序需遵循 CC BY-ND 许可协议
'这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用;
'不允许对程序代码以任何形式任何目的的再发布。
'--------------------------------------------------------
*/
error_reporting(E_ERROR | E_PARSE )... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSlidersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sliders', funct... |
<?php
/**
* This source file is part of the open source project
* ExpressionEngine (https://expressionengine.com)
*
* @link https://expressionengine.com/
* @copyright Copyright (c) 2003-2018, EllisLab, Inc. (https://ellislab.com)
* @license https://expressionengine.com/license Licensed under Apache License... |
<nav class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
... |
<?php
namespace addons\Purchase\common\queues;
use Yii;
use common\queues\RetryJob;
/**
* 采购申请单日志
* Class ReceiptLogJob
* @package common\queues
* @author jianyan74 <751393839@qq.com>
*/
class ApplyLogJob extends RetryJob
{
/**
* 日志记录数据
*
* @var
*/
public $data;
/**
* @... |
<?php
use Symfony\Component\Translation\MessageCatalogue;
$catalogue = new MessageCatalogue('id', array (
'validators' =>
array (
'This value should be false.' => 'Nilai ini harus bernilai salah.',
'This value should be true.' => 'Nilai ini harus bernilai benar.',
'This value should be of type {{ typ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
<?php namespace Illuminate\Auth;
interface UserInterface {
/**
* Get the unique identifier for the user.
*
* @return mixed
*/
public function getAuthIdentifier();
/**
* Get the password for the user.
*
* @return string
*/
public function getAuthPassword();
} |
<?php
namespace OFFLINE\Cashier\Models;
use Laravel\Cashier\Subscription as CashierSubscription;
class Subscription extends CashierSubscription
{
public $table = 'offline_cashier_subscriptions';
} |
@extends('layouts.adminLayouts.admin_design')
@section('content')
<div id="content">
<div id="content-header">
<h2 class="text-center lead">List Product</h2>
@if(Session::has('flash_message_success'))
<div class="alert alert-success alert-block">
<... |
<?php
namespace App\Http\Controllers;
use App\purchaserequests;
use App\budgets;
use App\expense;
use DB;
use Illuminate\Http\Request;
class PurchaserequestsController extends Controller
{
/**
* Muestra la vista con las solicitudes de compra pendientes.
*
* @return \Illuminate\Http\Response
*... |
<x-layout>
<section class="px-6 py-8">
<main class="max-w-6xl mx-auto mt-10 lg:mt-20 space-y-6">
<article class="max-w-4xl mx-auto lg:grid lg:grid-cols-12 gap-x-10">
<div class="col-span-4 lg:text-center lg:pt-14 mb-10">
<img src="{{ asset('storage/' . $post-... |
<?php
/**
* InventoryItemGroupTest
*
* PHP version 7.2
*
* @category Class
* @package OpenAPI\EbayInventoryClient
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Inventory API
*
* The Inventory API is used to create and manage inventory, and then to publish and manag... |
<?php namespace App\Entities;
use CodeIgniter\Entity;
class User extends Entity
{
protected $attributes = [
'id' => null,
'team_id' => null,
'username' => null,
'email' => null,
'name' => null,
];
public function team()
{
$teamModel = new \App\Models\TeamModel();
return $teamMod... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Type_Info extends Model
{
protected $table = 'type_info';
} |
<?php
include 'conexionBD_PDO.php';
$conexion = getConexion();
if(!isset($_SERVER['PHP_AUTH_USER'])){
header('WWW-Authenticate: Basic Realm=Contenido restingido');
header('HTTP/1.0 401 Unauthorized');
echo "Usuario no reconocido";
echo "<p>PEDO {$_SERVER['P... |
<?php declare(strict_types=1);
namespace STS\AwsEvents\Events;
class Lex extends Event
{
/** @var string */
protected static $contains = 'messageVersion';
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9Mu... |
<?php
/*
* This file is part of Phunkie, library with functional structures for PHP.
*
* (c) Marcello Duarte <marcello.duarte@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phunkie\Utils;
use Phunkie\Cats\F... |
<?php
namespace App\Models;
use App\Models\Produit;
use App\Models\Category;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Category extends Model
{
use HasFactory;
public function parent() {
return $this->belongsTo('App\Models\Category');
}
... |
<?php
/*
* This file is part of the Kuiper package.
*
* (c) Ye Wenbin <wenbinye@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace kuiper\di\annotation;
use kuiper\di\Condition;
use Ps... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Salon-hair</title>
<link href="{{ asset('/css/app.css') }}" rel="stylesheet">
<script src="https://... |
<?php
namespace common\services\notifications\services\push\gates;
/*
Class to send push notifications using Google Cloud Messaging for Android
Example usage
-----------------------
$an = new GCMPushMessage($apiKey);
$an->setDevices($devices);
$response = $an->send($message);
-----------------------
$apiKey... |
<?php
/**
* ALIPAY API: alipay.open.auth.token.app.query request
*
* @author auto create
* @since 1.0, 2016-07-18 13:35:47
*/
class AlipayOpenAuthTokenAppQueryRequest
{
/**
* 查询某个ISV下的指定app_auth_token的授权信息:授权者、授权接口列表、状态、过期时间等
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
p... |
<?php
namespace App\Http\Controllers\Api\Document;
use App\Abstracts\Http\ApiController;
use App\Http\Requests\Document\Document as Request;
use App\Jobs\Document\CreateDocument;
use App\Jobs\Document\DeleteDocument;
use App\Jobs\Document\UpdateDocument;
use App\Models\Document\Document;
use App\Transformers\Document... |
@extends('layout')
@section('body-content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Login</div>
<div class="panel-body">
<form class="form-ho... |
<!DOCTYPE html>
<html>
<head>
<title >Enicoder || Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="ht... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateApontamentosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('apontament... |
<?php
namespace Tests\Stefna\Mailchimp\Api\Campaigns;
use Stefna\Mailchimp\Model\Campaign\SendTest;
use Tests\Stefna\Mailchimp\AbstractTestCase;
class ActionsTest extends AbstractTestCase
{
const CAMPAIGN_ID = '88cbf762dc';
public function testTestWorks()
{
$data = new SendTest();
$data->sendType = 'html';
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CrmUser extends Model
{
use HasFactory;
} |
<!-- Inliner Build Version 4380b7741bb759d6cb997545f3add21ad48f010b -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" style="font-size: 100%; font-family: 'Avenir Next', 'Helve... |
<?php
/** no direct access **/
defined('_WPLEXEC') or die('Restricted access');
_wpl_import('libraries.units');
_wpl_import('libraries.sort_options');
_wpl_import('libraries.room_types');
class wpl_data_structure_controller extends wpl_controller
{
public $tpl_path = 'views.backend.data_structure.tmpl';
... |
{!! Form::model($model, [
'route'=> $model->exists ? ['potensi.update',$model->id] : 'potensi.store',
'method'=> $model->exists ? 'PUT' : 'POST',
'class' => 'form-horizontal',
'role'=>'form'
]) !!}
<div class="form-group">
<label for="label" class="col-sm-3 control-label">Label</label>
<div cla... |
<?php
declare(strict_types=1);
namespace Kefzce\CryptoCurrencyExchanges\Tests\Provider\Stubs;
use ReflectionClass;
final class InvalidProvider
{
public function __toString(): string
{
$r = new ReflectionClass($this);
return $r->getShortName();
}
} |
<?php
namespace Doctrine\Tests\Common\Persistence\Mapping;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver;
use Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain;
use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\Test... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Reg;
// use Illuminate\Support\Facades\DB;
class RegController extends Controller
{
//
function index()
{
try{
return view('register');
}
catch (\Exception $e) {
return back()->withEr... |
<?php namespace vital3\Repositories;
use App\vital3\InboundOrder;
use App\vital3\InboundOrderAdditional;
use Carbon\Carbon;
class DBInboundOrderRepository implements InboundOrderRepositoryInterface {
/**
* Implement getAll()
*/
public function getAll($limit=10) {
// using the Eloquent model
if($limit... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
{{ Form::hidden('user_id', auth()->user()->id) }}
<div class="form-group">
{{ Form::label('category_id', 'Categorias') }}
{{ Form::select('category_id', $categories, null, ['class' => 'form-control']) }}
</div>
<div class="form-group">
{{ Form::label('name', 'Nombre de la etiqueta') }}
{{ Form::text('... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use app\assets\FrontAsset;
use yii\helpers\Url;
FrontAsset::register($this);
$message = message();
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->char... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Admission */
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => 'Admissions', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="admission-view">
... |
<?php
namespace App\Http\Controllers;
use App\Clan;
use App\Http\CocService;
use App\Member;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
use Carbon\Carbon;
use Illuminate\Support\Collection;
class PlayerController extends Controller
{
public function player($playerTag)
{
// get the info of th... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php declare(strict_types=1); namespace controller\backend\src;
/**
* MIT License
*
* Copyright (c) 2020 jeamu
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<footer id="footer"><!--Footer-->
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-sm-2">
<div class="companyinfo">
<h2><span>e</span>-shopper</h2>
<p>Lorem ipsum dolor sit amet,... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Tipo_contrato extends Model
{
protected $table='tipo_contratos';
protected $fillable = ['tipo','descripcion'];
public $timestamps=false;
public function contrato(){
... |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Samsung;
use JMS\Serializer\Annotation\ExclusionPolic... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateStudentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('students', fun... |
@extends('layouts.adminlte')
@section('content')
@if(count($user_blogs) > 0)
@foreach($user_blogs as $blog)
<div class="col-md-4">
<div class="card card-block" style="width: 24rem;">
<div class="card-header">
<h3>{{$blog->title}}</h3>
</div>
<i... |
<?php
error_reporting(E_ALL);
$str = "Hello friend, you're
looking good today!";
$b = $str;
var_dump(str_word_count($str, 1));
var_dump(str_word_count($str, 2));
var_dump(str_word_count($str));
var_dump(str_word_count($str, 3));
var_dump(str_word_count($str, 123));
var_dump(str_word_count($str, -1));
var_d... |
<?php
use Illuminate\Database\Seeder;
use App\Car;
use App\Brand;
class CarSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
factory(Car::class,50) ->make()
->each(function($car){
$brand = Brand::inRando... |
<?php
$nombre='Carlos';
$edad=23;
$pais='Ecuador';
class Persona{
public $nombre='Carlos';
public $edad=23;
public $pais='Ecuador';
public function mostraInformacion(){
echo 'hola mundo </br>';
}
}
//instancia de la clase
$paul=new Persona();
//seteo valores -
$paul->nombre='Paul';
$p... |
<?php
namespace Ibrows\PostBarcodeBundle\Soap\Classes\Barcode;
class Provider
{
/**
*
* @var Sending $Sending
* @access public
*/
public $Sending = null;
/**
*
* @param Sending $Sending
* @access public
*/
public function __construct($Sending = null)
{
... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<div class="container">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1 align="center">
Laporan Resume Kegiatan Posyandu
</h1>
</section>
<!-- Main content -->
<section... |
<!doctype html>
<html>
<head>
<title>harviacode.com - codeigniter crud generator</title>
<link rel="stylesheet" href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css') ?>"/>
<style>
body{
padding: 15px;
}
</style>
</head>
<b... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="s... |
<?php
// JS ADMIN
function custom_admin_js() {
$url = get_bloginfo('template_directory') . '/js/dem.js';
echo '"<script type="text/javascript" src="'. $url . '"></script>"';
}
add_action('admin_footer', 'custom_admin_js');
?> |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace MessageBird\Objects\Chat;
use MessageBird\Objects\Base;
/**
* Class Message
*
* @package MessageBird\Objects
*/
class Message extends Base
{
/**
* The type of the messages. Possible values: text, image, audio, video, location
*
* @var string
*/
public $type = 'text';
... |
<?php
namespace App\Http\Controllers;
use App\Comment;
use App\Lib\Helper;
use Illuminate\Http\Request;
class CommentsController extends Controller
{
use Helper;
public function __construct()
{
$this->middleware('auth:api')->only(['store', 'update', 'destroy']);
}
/**
* Display a li... |
<?php
namespace App\Http\Controllers\Api\V1\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\StoreTimeWorkTypeRequest;
use App\Http\Requests\UpdateTimeWorkTypeRequest;
use App\Http\Resources\Admin\TimeWorkTypeResource;
use App\TimeWorkType;
use Gate;
use Illuminate\Http\Request;
use Symfony\Component... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\Test\Catalog\Types;
use DTS\eBaySDK\Catalog\Types\SearchRestResponse;
class SearchRestRes... |
<?php declare(strict_types=1);
namespace Formularium\Frontend\Buefy\Renderable;
use Formularium\Field;
use Formularium\Frontend\Buefy\RenderableBuefyInputTrait;
use Formularium\HTMLNode;
class Renderable_usmall extends \Formularium\Renderable
{
use RenderableBuefyInputTrait;
} |
<?php
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Auth;
Route::get('/login', 'Auth\LoginController@carregalogin')->name('page.login');
//Route::get('/', 'Auth\LoginController@carregalogin');
Route::post('/login', 'Auth\LoginController@login')->name('user.login');
Route::get('/cadastro', 'Auth\... |
@extends('plantillas.master1')
@section('titulo', 'Ver Foro')
@section('css')
<style type="text/css">
#post {
white-space:normal !important;
word-wrap: break-word;
}
body{
background-color: rgba(12, 11, 11, 0.82);
}
#noticia{
background: white;
}
.back{
ba... |
<?php
// $Id: CourseRecycler.class.php 12117 2007-04-24 22:06:36Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite cath... |
@extends('layouts.app_admin')
<?php error_reporting(0); ?>
@section('content')
<style>
@media only screen and (min-width: 650px) {
th{
padding:3px;
border:solid 1px #bf9898;
color: #575282;
text-align:center;
font-size: 0.7vw;
font-family:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.