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 |
|---|---|---|---|---|---|---|---|---|
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Payment/PayService.php | app/Services/Payment/PayService.php | <?php
namespace App\Services\Payment;
use App\Models\CompanyInfo;
use App\Models\Invoice;
use App\Models\PaymentMethod;
use App\Models\PaymentPlan;
use App\Models\UserInfo;
class PayService
{
public function pay()
{
$requestIyzico = new \Iyzipay\Request\CreateCheckoutFormInitializeRequest();
$cart = session('cart');
$user = auth()->user();
$info = UserInfo::where('userId', auth()->id())->first();
$company = CompanyInfo::where('companyId', companyId(), $cart['couponId'])->first();
$requestIyzico->setLocale(\Iyzipay\Model\Locale::TR);
$requestIyzico->setConversationId(rand());
$requestIyzico->setPrice(number_format($cart['price'], '2', '.', ''));
$requestIyzico->setPaidPrice(number_format($cart['total_amount'], '2', '.', ''));
$requestIyzico->setCurrency(\Iyzipay\Model\Currency::TL);
$requestIyzico->setBasketId('B67832');
$requestIyzico->setPaymentGroup(\Iyzipay\Model\PaymentGroup::PRODUCT);
$requestIyzico->setCallbackUrl(route('manager.pay.callback', ['companyId' => companyId(), 'couponId' => $cart['couponId']]));
$requestIyzico->setEnabledInstallments([2, 3, 6, 9]);
$buyer = new \Iyzipay\Model\Buyer();
$buyer->setId(rand());
$buyer->setName($user->name);
$buyer->setSurname($user->surname);
$buyer->setGsmNumber($info->phone);
$buyer->setEmail($user->email);
$buyer->setIdentityNumber(rand());
$buyer->setLastLoginDate((string) now());
$buyer->setRegistrationDate((string) $user->created_at);
$buyer->setRegistrationAddress($info->address);
$buyer->setIp(request()->ip());
$buyer->setCity('Karaman');
$buyer->setCountry('Turkey');
$buyer->setZipCode('70100');
$requestIyzico->setBuyer($buyer);
$shippingAddress = new \Iyzipay\Model\Address();
$shippingAddress->setContactName($user->name.' '.$user->surname);
$shippingAddress->setCity('Karaman');
$shippingAddress->setCountry('Turkey');
$shippingAddress->setAddress($info->address);
$shippingAddress->setZipCode('70100');
$requestIyzico->setShippingAddress($shippingAddress);
$billingAddress = new \Iyzipay\Model\Address();
$billingAddress->setContactName($user->name.' '.$user->surname);
$billingAddress->setCity('karaman');
$billingAddress->setCountry('karaman');
$billingAddress->setAddress($company->address);
$billingAddress->setZipCode($company->zip_code);
$requestIyzico->setBillingAddress($billingAddress);
$basketItems = [];
$BasketItem = new \Iyzipay\Model\BasketItem();
$BasketItem->setId(rand());
$BasketItem->setName('Ehliyet Sürücü Kurs Yönetim Sistemi');
$BasketItem->setCategory1('Yazılım');
$BasketItem->setCategory2('Kurs Yönetim Sistemi');
$BasketItem->setItemType(\Iyzipay\Model\BasketItemType::PHYSICAL);
$BasketItem->setPrice(number_format($cart['price'], '2', '.', ''));
$basketItems[] = $BasketItem;
$requestIyzico->setBasketItems($basketItems);
$checkoutFormInitialize = \Iyzipay\Model\CheckoutFormInitialize::create($requestIyzico, self::options());
$paymentForm = $checkoutFormInitialize->getCheckoutFormContent();
return $paymentForm;
}
public function options(): \Iyzipay\Options
{
$options = new \Iyzipay\Options();
$options->setApiKey(env('IYZICO_API_KEY'));
$options->setSecretKey(env('IYZICO_SECRET_KEY'));
$options->setBaseUrl(env('IYZICO_BASE_URL'));
return $options;
}
public function paySuccess($id, $couponId, $paymentId = null)
{
$cart = session('cart');
$payment = PaymentMethod::where('code', 'online')->first();
$invoice = Invoice::where('companyId', $id)->orderBy('id', 'desc')->first();
$company = CompanyInfo::where('companyId', $id)->first();
$paymentPlan = PaymentPlan::find($company->planId);
$invoice->status = true;
$invoice->discount_amount = $cart['discount'];
$invoice->total_amount = $cart['total_amount'];
$invoice->start_date = now();
$invoice->end_date = now()->addMonths($paymentPlan->month);
$invoice->couponId = $couponId;
$invoice->paymentId = $paymentId ?? $payment->id;
$invoice->save();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Manager/LiveLessonService.php | app/Services/Manager/LiveLessonService.php | <?php
namespace App\Services\Manager;
use App\Http\Requests\Manager\LiveLessonRequest;
use App\Models\LiveLesson;
use Illuminate\Support\Str;
class LiveLessonService
{
public function store(LiveLessonRequest $request)
{
LiveLesson::create([
'title' => Str::title($request->title),
'live_date' => $request->live_date,
'url' => $request->url,
'periodId' => $request->periodId,
'monthId' => $request->monthId,
'groupId' => $request->groupId,
'typeId' => $request->typeId,
'companyId' => companyId(),
]);
}
public function update(LiveLessonRequest $request, $id)
{
LiveLesson::find($id)->update([
'title' => Str::title($request->title),
'live_date' => $request->live_date,
'url' => $request->url,
'periodId' => $request->periodId,
'monthId' => $request->monthId,
'groupId' => $request->groupId,
'typeId' => $request->typeId,
'companyId' => companyId(),
]);
}
public function destroy($id)
{
LiveLesson::find($id)->delete();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Manager/NotificationService.php | app/Services/Manager/NotificationService.php | <?php
namespace App\Services\Manager;
use App\Jobs\NotificationJob;
use App\Models\Notification;
use App\Models\NotificationUser;
use App\Services\FirebaseNotificationService;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class NotificationService
{
protected $notificationService;
public function __construct(FirebaseNotificationService $notificationService)
{
$this->notificationService = $notificationService;
}
public function store(Request $request)
{
DB::transaction(function () use ($request) {
$notification = Notification::create([
'message' => ucfirst($request->message),
'companyId' => companyId(),
]);
self::storeUser($request, $notification->id);
//NotificationJob::dispatch($notification->id,companyId())->onQueue('notification');
$this->notificationService->execute($notification->id, companyId());
});
}
public function storeUser(Request $request, $id)
{
foreach ($request->except(['message', '_token']) as $key => $val) {
NotificationUser::create([
'userId' => $key,
'notificationId' => $id,
]);
}
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Manager/AppointmentService.php | app/Services/Manager/AppointmentService.php | <?php
namespace App\Services\Manager;
use App\Http\Requests\Manager\AppointmentRequest;
use App\Models\Appointment;
use App\Models\AppointmentSetting;
use App\Models\User;
use Illuminate\Http\Request;
class AppointmentService
{
public function store(AppointmentRequest $request): void
{
Appointment::create([
'userId' => auth()->user()->type == User::Manager ? $request->userId : auth()->id(),
'teacherId' => $request->teacherId,
'carId' => $request->carId,
'companyId' => companyId(),
'date' => $request->date,
]);
}
public function update(AppointmentRequest $request, $id): void
{
Appointment::find($id)->update([
'userId' => auth()->user()->type == User::Manager ? $request->userId : auth()->id(),
'teacherId' => $request->teacherId,
'carId' => $request->carId,
'companyId' => companyId(),
'date' => $request->date,
]);
}
public function destroy($id): void
{
Appointment::find($id)->delete();
}
public function settingStoreAndUpdate(Request $request): void
{
$arr = [];
foreach ($request->except('_token') as $key => $val) {
array_push($arr, $val);
AppointmentSetting::updateOrCreate([
'ignore_date' => $val,
'companyId' => companyId(),
]);
}
AppointmentSetting::whereNotIn('ignore_date', $arr)->delete();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Manager/CarService.php | app/Services/Manager/CarService.php | <?php
namespace App\Services\Manager;
use App\Http\Requests\Manager\CarRequest;
use App\Models\Car;
class CarService
{
public function store(CarRequest $request)
{
Car::create([
'plate_code' => strtoupper($request->plate_code),
'companyId' => companyId(),
'typeId' => $request->typeId,
'status' => $request->status,
]);
}
public function update(CarRequest $request, $id)
{
Car::find($id)->update([
'plate_code' => strtoupper($request->plate_code),
'companyId' => companyId(),
'typeId' => $request->typeId,
'status' => $request->status ?? 0,
]);
}
public function destroy($id)
{
Car::find($id)->delete();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Manager/QuestionService.php | app/Services/Manager/QuestionService.php | <?php
namespace App\Services\Manager;
use App\Http\Requests\Manager\QuestionRequest;
use App\Jobs\ImageConvertJob;
use App\Models\BugQuestion;
use App\Models\CompanyQuestion;
use App\Models\Question;
use App\Models\QuestionChoice;
use App\Models\QuestionChoiceKey;
use App\Services\ImageConvertService;
use Illuminate\Support\Facades\DB;
class QuestionService
{
protected $convertService;
public function __construct(ImageConvertService $convertService)
{
$this->convertService = $convertService;
}
public function store(QuestionRequest $request)
{
DB::transaction(function () use ($request) {
$question = new Question();
$question->title = $request->title;
$question->description = $request->description;
$question->questionImage = isset($request->questionImage) == 'on' ? 1 : 0;
$question->choiceImage = isset($request->choiceImage) == 'on' ? 1 : 0;
$question->languageId = $request->languageId;
$question->typeId = $request->typeId;
if ($request->file('imagePath') && isset($request->questionImage)) {
$path = request()->file('imagePath')->store('questions', 'public');
$question->imagePath = $path;
}
$question->save();
self::companyQuestion($question->id);
if ($request->file('imagePath') && isset($request->questionImage)) {
//ImageConvertJob::dispatch($question->id, 'question', $path)->onQueue('image');
$this->convertService->execute($question->id, 'question', $path);
}
if (isset($request->choiceImage) == 'on') {
self::choiceImageStore($request, $question->id);
} else {
self::choiceStore($request, $question->id);
}
});
}
public function choiceStore($request, $id)
{
for ($i = 1; $i <= 4; $i++) {
$choiceText = 'choice_text_'.$i;
$choice = QuestionChoice::create([
'title' => $request->$choiceText,
'path' => null,
'questionId' => $id,
]);
if ($request->correct_choice == $i) {
self::choiceKeyStore($choice->id, $id);
}
}
}
public function choiceImageStore($request, $id)
{
$request->except(['_token', '_method', 'typeId', 'correct_choice', 'title', 'description', 'ck_editor', 'statusChoiceImage', 'photo', 'choiceImage', 'questionImage', 'imagePath']);
for ($i = 1; $i <= 4; $i++) {
$choiceImage = 'choice_image_'.$i;
$path = $request->file($choiceImage)->store('choices', 'public');
$choice = QuestionChoice::create([
'title' => null,
'path' => $path,
'questionId' => $id,
]);
//ImageConvertJob::dispatch($choice->id, 'questionChoice', $path)->onQueue('image');
$this->convertService->execute($choice->id, 'questionChoice', $path);
self::choiceKeyStore($choice->id, $id);
}
}
public function choiceKeyStore($cId, $qId)
{
QuestionChoiceKey::create([
'choiceId' => $cId,
'questionId' => $qId,
]);
}
public function update(QuestionRequest $request, $id)
{
DB::transaction(function () use ($request, $id) {
$question = Question::find($id);
$question->title = $request->title;
$question->description = $request->description;
$question->questionImage = isset($request->questionImage) == 'on' ? 1 : 0;
$question->choiceImage = isset($request->choiceImage) == 'on' ? 1 : 0;
$question->languageId = $request->languageId;
$question->typeId = $request->typeId;
$question->save();
if (request()->file('imagePath') && isset($request->questionImage)) {
$path = request()->file('imagePath')->store('questions', 'public');
//ImageConvertJob::dispatch($id, 'question', $path)->onQueue('image');
$this->convertService->execute($id, 'question', $path);
}
self::choiceKeyUpdate($request, $id);
if (isset($request->choiceImage) == 'on') {
self::choiceImageUpdate($request);
} else {
self::choiceUpdate($request);
}
});
}
public function choiceUpdate($request)
{
$req = $request->except(['_token', '_method', 'typeId', 'correct_choice', 'title', 'description', 'ck_editor', 'statusChoiceImage', 'choiceImage', 'questionImage', 'imagePath', 'languageId']);
foreach ($req as $key => $val) {
QuestionChoice::find($key)->update([
'title' => $val,
'path' => null,
]);
}
}
public function choiceKeyUpdate($request, $id)
{
QuestionChoiceKey::where('questionId', $id)->update([
'choiceId' => $request->correct_choice,
'questionId' => $id,
]);
}
public function choiceImageUpdate($request)
{
$req = $request->except(['_token', '_method', 'typeId', 'correct_choice', 'title', 'description', 'ck_editor', 'statusChoiceImage', 'choiceImage', 'questionImage', 'imagePath', 'languageId']);
foreach ($req as $key => $val) {
if ($request->hasFile($key)) {
$path = $request->file($key)->store('choices', 'public');
QuestionChoice::find($key)->update([
'title' => null,
'path' => $path,
]);
//ImageConvertJob::dispatch($key, 'questionChoice', $path)->onQueue('image');
$this->convertService->execute($key, 'questionChoice', $path);
}
}
}
public function destroy($id)
{
Question::find($id)->delete();
QuestionChoice::where('questionId', $id)->delete();
QuestionChoiceKey::where('questionId', $id)->delete();
CompanyQuestion::where('questionId', $id)->delete();
}
/**
* @param $companyId
*/
public function companyQuestion($questionId)
{
CompanyQuestion::create([
'questionId' => $questionId,
'companyId' => companyId(),
]);
}
public function bugDestroy($id)
{
BugQuestion::find($id)->delete();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Manager/ClassExamService.php | app/Services/Manager/ClassExamService.php | <?php
namespace App\Services\Manager;
use App\Models\ClassExam;
use App\Models\ClassExamQuestionType;
class ClassExamService
{
public function store($request): void
{
$class = ClassExam::create([
'companyId' => companyId(),
'periodId' => $request->periodId,
'monthId' => $request->monthId,
'groupId' => $request->groupId,
]);
foreach ($request->except(['_token', 'periodId', 'monthId', 'groupId']) as $key => $value) {
ClassExamQuestionType::create([
'classExamId' => $class->id,
'typeId' => $key,
'length' => $value,
]);
}
}
public function update($classId): void
{
$class = ClassExam::find($classId);
$class->status = $class->status == 1 ? 0 : 1;
$class->save();
}
public function destroy($id): void
{
ClassExam::find($id)->delete();
ClassExamQuestionType::where('classExamId', $id)->delete();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Services/Manager/CompanyService.php | app/Services/Manager/CompanyService.php | <?php
namespace App\Services\Manager;
use App\Jobs\ImageConvertJob;
use App\Models\Company;
use App\Models\CompanyInfo;
use App\Services\ImageConvertService;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
class CompanyService
{
protected $convertService;
public function __construct(ImageConvertService $convertService)
{
$this->convertService = $convertService;
}
public function update($request)
{
DB::transaction(function () use ($request) {
Company::find(companyId())->update([
'title' => Str::title($request->title),
]);
self::InfoUpdate($request, companyId());
});
}
public function InfoUpdate($request, $id): void
{
! $request->file('logo') ? $path = null : $path = $request->file('logo')->store('companies', 'public');
$info = CompanyInfo::where('companyId', $id)->first();
$info->tax_no = $request->tax_no;
$info->email = $request->email;
$info->website_url = $request->website_url;
$info->phone = $request->phone;
$info->countryId = $request->countryId;
$info->cityId = $request->cityId;
$info->stateId = $request->stateId;
$info->address = $request->address;
$info->zip_code = $request->zip_code;
$info->save();
if ($path != null) {
//ImageConvertJob::dispatch($id, 'company', $path)->onQueue('image');
$this->convertService->execute($id, 'company', $path);
//$info->logo = $path;
}
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/ModelFilters/UserInfoFilter.php | app/ModelFilters/UserInfoFilter.php | <?php
namespace App\ModelFilters;
use EloquentFilter\ModelFilter;
class UserInfoFilter extends ModelFilter
{
/**
* Related Models that have ModelFilters as well as the method on the ModelFilter
* As [relationMethod => [input_key1, input_key2]].
*
* @var array
*/
public $relations = [];
public function period($period)
{
if ($period != 0) {
return $this->where('periodId', $period);
}
}
public function month($month)
{
if ($month != 0) {
return $this->where('monthId', $month);
}
}
public function group($group)
{
if ($group != 0) {
return $this->where('groupId', $group);
}
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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 = [
//
];
/**
* Define the application's command schedule.
*
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Console/Commands/InvoiceCreate.php | app/Console/Commands/InvoiceCreate.php | <?php
namespace App\Console\Commands;
use App\Services\InvoiceCreatorService;
use Illuminate\Console\Command;
class InvoiceCreate extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'invoice:create';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Auto Invoice Create';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle(InvoiceCreatorService $invoiceCreatorService)
{
$invoiceCreatorService->execute();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/TestQuestion.php | app/Models/TestQuestion.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class TestQuestion extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'questionId',
'testId',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function question()
{
return $this->hasOne(Question::class, 'questionId');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function test()
{
return $this->hasOne(Test::class, 'testId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Appointment.php | app/Models/Appointment.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Appointment extends Model
{
use HasFactory, SoftDeletes;
/**
* @var string[]
*/
protected $fillable = [
'date',
'status',
'teacherId',
'userId',
'carId',
'companyId',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function user()
{
return $this->hasOne(User::class, 'id', 'userId')->withDefault();
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function teacher()
{
return $this->hasOne(User::class, 'id', 'teacherId')->withDefault();
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function car()
{
return $this->hasOne(Car::class, 'id', 'carId')->withDefault();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/NotificationUser.php | app/Models/NotificationUser.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class NotificationUser extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['userId', 'notificationId'];
public function notification()
{
return $this->hasOne(Notification::class, 'id', 'notificationId')->latest();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/PaymentPlan.php | app/Models/PaymentPlan.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PaymentPlan extends Model
{
use HasFactory;
protected $fillable = ['month', 'description'];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Support.php | app/Models/Support.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Support extends Model
{
use HasFactory, SoftDeletes;
/**
* @var string[]
*/
protected $fillable = [
'subject',
'message',
'userId',
'status',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function user()
{
return $this->hasOne(User::class, 'id', 'userId');
}
public function info()
{
return $this->hasOne(UserInfo::class, 'userId', 'userId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/LessonContent.php | app/Models/LessonContent.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class LessonContent extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
'content',
'file',
'languageId',
'typeId',
];
public function type()
{
return $this->hasOne(QuestionType::class, 'id', 'typeId');
}
public function language()
{
return $this->hasOne(Language::class, 'id', 'languageId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/BugQuestion.php | app/Models/BugQuestion.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
class BugQuestion extends Model
{
use HasFactory;
protected $fillable = ['questionId'];
public function companyQuestion(): HasOne
{
return $this->hasOne(CompanyQuestion::class, 'questionId', 'questionId');
}
public function question(): HasOne
{
return $this->hasOne(Question::class, 'id', 'questionId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Month.php | app/Models/Month.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Month extends Model
{
use HasFactory;
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/CarType.php | app/Models/CarType.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class CarType extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/State.php | app/Models/State.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class State extends Model
{
use HasFactory;
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/CompanyInfo.php | app/Models/CompanyInfo.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class CompanyInfo extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'tax_no',
'email',
'website_url',
'phone',
'countryId',
'cityId',
'stateId',
'address',
'zip_code',
'logo',
'planId',
'companyId',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/LiveLesson.php | app/Models/LiveLesson.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class LiveLesson extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
'live_date',
'url',
'periodId',
'monthId',
'groupId',
'typeId',
'companyId',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function period()
{
return $this->hasOne(Period::class, 'id', 'periodId');
}
public function group()
{
return $this->hasOne(Group::class, 'id', 'groupId');
}
public function type()
{
return $this->hasOne(QuestionType::class, 'id', 'typeId');
}
public function month()
{
return $this->hasOne(Month::class, 'id', 'monthId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/User.php | app/Models/User.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use HasFactory, Notifiable, SoftDeletes;
const Admin = 1;
const Manager = 2;
const Teacher = 3;
const Normal = 4;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'tc',
'name',
'surname',
'email',
'password',
'type',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
public function info()
{
return $this->hasOne(UserInfo::class, 'userId', 'id');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/PaymentMethod.php | app/Models/PaymentMethod.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PaymentMethod extends Model
{
use HasFactory;
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Test.php | app/Models/Test.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Test extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['title', 'userId'];
public function userInfo()
{
return $this->hasOne(UserInfo::class, 'userId', 'userId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Notification.php | app/Models/Notification.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Notification extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['message', 'status', 'companyId'];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Language.php | app/Models/Language.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Language extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
'code',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/ClassExamQuestionType.php | app/Models/ClassExamQuestionType.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ClassExamQuestionType extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'classExamId',
'typeId',
'length',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/TestResultType.php | app/Models/TestResultType.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class TestResultType extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'total_question',
'correct',
'in_correct',
'blank_question',
'testId',
'typeId',
'resultId',
'userId',
];
public function type()
{
return $this->hasOne(QuestionType::class, 'id', 'typeId');
}
public function result()
{
return $this->hasOne(QuestionType::class, 'id', 'resultId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Invoice.php | app/Models/Invoice.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;
class Invoice extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'price',
'discount_amount',
'total_amount',
'companyId',
'start_date',
'end_date',
'packageId',
'paymentId',
'couponId',
'status',
];
public function company(): HasOne
{
return $this->hasOne(Company::class, 'id', 'companyId');
}
public function payment(): HasOne
{
return $this->hasOne(PaymentMethod::class, 'id', 'paymentId');
}
public function package(): HasOne
{
return $this->hasOne(Package::class, 'id', 'packageId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/AppointmentSetting.php | app/Models/AppointmentSetting.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class AppointmentSetting extends Model
{
use HasFactory;
protected $fillable = ['ignore_date', 'companyId'];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/CompanyQuestion.php | app/Models/CompanyQuestion.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class CompanyQuestion extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'questionId',
'companyId',
];
public function question(): BelongsTo
{
return $this->belongsTo(Question::class, 'questionId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/City.php | app/Models/City.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class City extends Model
{
use HasFactory;
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/QuestionType.php | app/Models/QuestionType.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class QuestionType extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['title'];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/NotificationDeviceToken.php | app/Models/NotificationDeviceToken.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class NotificationDeviceToken extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = ['userId', 'token'];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/UserAnswer.php | app/Models/UserAnswer.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class UserAnswer extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'testId',
'userId',
'questionId',
'choiceId',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function user()
{
return $this->hasOne(User::class, 'userId');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function question()
{
return $this->hasOne(Question::class, 'questionId');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function choice()
{
return $this->hasOne(QuestionChoice::class, 'choiceId');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function test()
{
return $this->hasOne(Test::class, 'testId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Country.php | app/Models/Country.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Country extends Model
{
use HasFactory;
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Coupon.php | app/Models/Coupon.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Coupon extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'code',
'discount',
'start_date',
'end_date',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/ClassExam.php | app/Models/ClassExam.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
class ClassExam extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'companyId',
'periodId',
'monthId',
'groupId',
'status',
];
public function classExamQuestionType(): HasMany
{
return $this->hasMany(ClassExamQuestionType::class, 'classExamId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/QuestionChoice.php | app/Models/QuestionChoice.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class QuestionChoice extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
'path',
'questionId',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function question()
{
return $this->belongsTo(Question::class);
}
public function choiceKey()
{
return $this->hasOne(QuestionChoiceKey::class, 'questionId', 'questionId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Group.php | app/Models/Group.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Group extends Model
{
use HasFactory;
protected $fillable = [
'title',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Car.php | app/Models/Car.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Car extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'plate_code',
'companyId',
'typeId',
'status',
];
public function type()
{
return $this->hasOne(CarType::class, 'id', 'typeId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Company.php | app/Models/Company.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Company extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
'subdomain',
];
public function companies()
{
return $this->belongsTo(Company::class);
}
public function info()
{
return $this->hasOne(CompanyInfo::class, 'companyId');
}
public function invoice()
{
return $this->hasOne(Invoice::class, 'companyId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Period.php | app/Models/Period.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Period extends Model
{
use HasFactory;
protected $fillable = [
'title',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/QuestionChoiceKey.php | app/Models/QuestionChoiceKey.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class QuestionChoiceKey extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'questionId',
'choiceId',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function question()
{
return $this->hasOne(Question::class, 'questionId');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\HasOne
*/
public function choice()
{
return $this->hasOne(QuestionChoice::class, 'choiceId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Question.php | app/Models/Question.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Question extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
'description',
'typeId',
'questionImage',
'choiceImage',
'imagePath',
'languageId',
'typeId',
];
/**
* @var string[]
*/
protected $casts = [
'questionImage' => 'boolean',
'choiceImage' => 'boolean',
];
public function choice()
{
return $this->hasMany(QuestionChoice::class, 'questionId', 'id');
}
public function types()
{
return $this->hasMany(QuestionType::class, 'id', 'typeId');
}
public function company()
{
return $this->hasOne(Company::class, 'companyId');
}
public function questionType()
{
return $this->hasOne(QuestionType::class, 'id', 'typeId');
}
public function language()
{
return $this->hasOne(Language::class, 'id', 'languageId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/UserInfo.php | app/Models/UserInfo.php | <?php
namespace App\Models;
use EloquentFilter\Filterable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;
class UserInfo extends Model
{
use Filterable, HasFactory, SoftDeletes;
protected $fillable = [
'phone',
'address',
'status',
'periodId',
'monthId',
'groupId',
'languageId',
'photo',
'companyId',
'userId',
];
/**
* @return mixed
*/
public function getPhoneAttribute($value)
{
try {
return decrypt($value);
} catch (\Exception $ex) {
return $value;
}
}
public function setPhoneAttribute($value)
{
$this->attributes['phone'] = encrypt($value);
}
/**
* @return mixed
*/
public function getAddressAttribute($value)
{
try {
return decrypt($value);
} catch (\Exception $ex) {
return $value;
}
}
public function setAddressAttribute($value)
{
$this->attributes['address'] = encrypt($value);
}
public function user(): HasOne
{
return $this->hasOne(User::class, 'id', 'userId')->withDefault();
}
public function language(): HasOne
{
return $this->hasOne(Language::class, 'id', 'languageId')->withDefault();
}
public function period(): HasOne
{
return $this->hasOne(Period::class, 'id', 'periodId')->withDefault();
}
public function group(): HasOne
{
return $this->hasOne(Group::class, 'id', 'groupId')->withDefault();
}
public function company(): HasOne
{
return $this->hasOne(Company::class, 'id', 'companyId')->withDefault();
}
public function companyInfo(): HasOne
{
return $this->hasOne(CompanyInfo::class, 'companyId', 'companyId')->withDefault();
}
public function month(): HasOne
{
return $this->hasOne(Month::class, 'id', 'monthId')->withDefault();
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/TestResult.php | app/Models/TestResult.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class TestResult extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'total_question',
'point',
'correct',
'in_correct',
'blank_question',
'testId',
'userId',
];
public function testQuestion()
{
return $this->hasOne(TestQuestion::class, 'testId', 'testId');
}
public function test()
{
return $this->hasOne(Test::class, 'id', 'testId');
}
public function user()
{
return $this->hasOne(User::class, 'id', 'userId');
}
public function userInfo()
{
return $this->hasOne(UserInfo::class, 'userId', 'userId');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Models/Package.php | app/Models/Package.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Package extends Model
{
use HasFactory, SoftDeletes;
protected $fillable = [
'title',
'description',
'price',
'planId',
];
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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();
require base_path('routes/channels.php');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Providers/RouteServiceProvider.php | app/Providers/RouteServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* The path to the "home" route for your application.
*
* This is used by Laravel authentication to redirect users after login.
*
* @var string
*/
public const HOME = '/redirect';
/**
* The controller namespace for the application.
*
* When present, controller route declarations will automatically be prefixed with this namespace.
*
* @var string|null
*/
// protected $namespace = 'App\\Http\\Controllers';
/**
* Define your route model bindings, pattern filters, etc.
*
* @return void
*/
public function boot()
{
$this->configureRateLimiting();
$this->routes(function () {
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
});
}
/**
* Configure the rate limiters for the application.
*
* @return void
*/
protected function configureRateLimiting()
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
});
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
//
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/app/Providers/AppServiceProvider.php | app/Providers/AppServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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\Models\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
//
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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 Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
$app = new Illuminate\Foundation\Application(
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
);
/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
return $app;
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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 | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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(Kernel::class)->bootstrap();
return $app;
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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 test_example()
{
$response = $this->get('/');
$response->assertStatus(200);
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/tests/Unit/QuestionTest.php | tests/Unit/QuestionTest.php | <?php
namespace Tests\Unit;
use Tests\TestCase;
class QuestionTest extends TestCase
{
public function test_user_can_login()
{
$credential = [
'tc' => 11111111111,
'password' => 'password',
];
$response = $this->post('login', $credential);
$response->assertSessionHasErrors();
}
/**
* A basic unit test example.
*
* @return void
*/
public function test_question_create()
{
auth()->loginUsingId(1);
$this->post(route('admin.question.store'), [
'title' => 'test'.rand(1, 100),
'languageId' => 1,
'typeId' => 1,
'choice_text_1' => rand(),
'choice_text_2' => rand(),
'choice_text_3' => rand(),
'choice_text_4' => rand(),
'correct_choice' => rand(1, 4),
])->assertStatus(200);
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/tests/Unit/ExampleTest.php | tests/Unit/ExampleTest.php | <?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function test_example()
{
$this->assertTrue(true);
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/routes/web.php | routes/web.php | <?php
use App\Http\Controllers\Admin\AdminController;
use App\Http\Controllers\Admin\CarTypeController;
use App\Http\Controllers\Admin\CompanyController;
use App\Http\Controllers\Admin\CouponController;
use App\Http\Controllers\Admin\GroupController;
use App\Http\Controllers\Admin\InvoiceController;
use App\Http\Controllers\Admin\LanguageController;
use App\Http\Controllers\Admin\LessonContentController;
use App\Http\Controllers\Admin\ManagerUserController;
use App\Http\Controllers\Admin\PackageController;
use App\Http\Controllers\Admin\PaymentPlanController;
use App\Http\Controllers\Admin\PeriodController;
use App\Http\Controllers\Admin\QuestionTypeController;
use App\Http\Controllers\Manager\AppointmentController;
use App\Http\Controllers\Manager\CarController;
use App\Http\Controllers\Manager\ClassExamController;
use App\Http\Controllers\Manager\CourseTeacherController;
use App\Http\Controllers\Manager\LiveLessonController;
use App\Http\Controllers\Manager\ManagerController;
use App\Http\Controllers\Manager\NotificationController;
use App\Http\Controllers\Manager\QuestionController;
use App\Http\Controllers\Manager\SalesController;
use App\Http\Controllers\Manager\SupportController;
use App\Http\Controllers\Manager\UserController;
use App\Http\Controllers\Teacher\ProfileController;
use App\Http\Controllers\User\HomeController;
use App\Http\Controllers\User\LessonController;
use App\Http\Controllers\User\QuizController;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::redirect('/', '/login');
Route::redirect('/home', '/login');
Auth::routes([
'login' => true,
'logout' => false,
'register' => false,
'reset' => true, // for resetting passwords
'confirm' => true, // for additional password confirmations
'verify' => true, // for email verification
]);
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::get('/redirect', [App\Http\Controllers\HomeController::class, 'redirect'])->name('redirect');
Route::get('/logout-user', [App\Http\Controllers\HomeController::class, 'logoutUser'])->name('logout-user');
Route::get('/city/{countryId?}', [App\Http\Controllers\HomeController::class, 'getCity'])->name('city');
Route::get('/state/{cityId?}', [App\Http\Controllers\HomeController::class, 'getState'])->name('state');
Route::post('coupon-code/{companyId?}', [\App\Http\Controllers\HomeController::class, 'postCouponCode'])->middleware('auth')->name('coupon.code');
Route::post('mobile/token', [HomeController::class, 'token'])->name('token');
Route::prefix('user')->name('user.')->middleware(['auth', 'check.role', 'check.user.status', 'check.invoice.status', 'locale'])->group(function () {
Route::get('dashboard', [HomeController::class, 'getDashboard'])->name('dashboard');
Route::get('exams', [HomeController::class, 'getExams'])->name('exams');
Route::get('class-exams', [HomeController::class, 'getClassExams'])->name('class-exams');
Route::get('custom-exam-setting', [HomeController::class, 'getCustomExamSetting'])->name('custom-exam-setting');
Route::get('/result', [HomeController::class, 'getResults'])->name('results');
Route::get('/result/details/{detailId}', [HomeController::class, 'getResultDetail'])->name('result.detail');
Route::resource('appointment', \App\Http\Controllers\User\AppointmentController::class);
Route::resource('lesson', LessonController::class);
Route::get('live-lessons', [HomeController::class, 'getLiveLessons'])->name('live-lessons');
Route::get('profile', [HomeController::class, 'getProfile'])->name('profile');
Route::put('profile', [HomeController::class, 'postProfileUpdate'])->name('profile.update');
Route::get('support', [HomeController::class, 'getSupport'])->name('support');
Route::post('support/create', [HomeController::class, 'postSupportStore'])->name('support.store');
Route::get('notifications', [HomeController::class, 'getNotifications'])->name('notifications');
Route::post('token', [HomeController::class, 'token'])->name('token');
Route::name('quiz.api.')->group(function () {
Route::get('/normal-exam/fetchQuestion', [QuizController::class, 'fetchNormalExam'])->name('normal');
Route::get('/custom-exam/fetchQuestion', [QuizController::class, 'fetchCustomExam'])->name('custom');
Route::get('/class-exam/fetchQuestion', [QuizController::class, 'fetchClassExam'])->name('class');
Route::get('/fetchUserAndTest', [QuizController::class, 'fetchUserAndTest']);
Route::post('/postUserAnswer', [QuizController::class, 'postUserAnswer'])->name('user-answer.store');
Route::post('/postCloseExam', [QuizController::class, 'postCloseExam'])->name('close.exam');
Route::post('/postBugQuestion', [QuizController::class, 'postBugQuestion'])->name('bug.question');
});
Route::name('quiz.')->group(function () {
Route::get('/normal-exam', [QuizController::class, 'getNormalExam'])->name('normal');
Route::get('/custom-exam', [QuizController::class, 'getCustomExam'])->name('custom');
Route::get('/class-exam', [QuizController::class, 'getClassExam'])->name('class');
});
});
Route::prefix('manager')->name('manager.')->middleware(['auth', 'check.role', 'check.user.status', 'check.invoice.status', 'locale'])->group(function () {
Route::get('dashboard', [ManagerController::class, 'getManagerDashboard'])->name('dashboard');
Route::get('profile', [ManagerController::class, 'getProfile'])->name('profile.edit');
Route::put('profile/update', [ManagerController::class, 'updateProfile'])->name('profile.update');
Route::get('company', [ManagerController::class, 'getCompany'])->name('company.edit');
Route::put('company/update', [ManagerController::class, 'updateCompany'])->name('company.update');
Route::post('pay-callback/{companyId}/{couponId?}', [SalesController::class, 'payOnlineCallback'])->name('pay.callback');
Route::get('online-pay', [SalesController::class, 'payOnline'])->name('pay.online');
Route::resource('invoice', SalesController::class);
Route::get('/user/excel-export', [UserController::class, 'exportExcel'])->name('user.excel-export');
Route::get('/user/excel-import', [UserController::class, 'getImportExcel'])->name('user.excel-import');
Route::post('/user/excel-import/create', [UserController::class, 'postImportExcel'])->name('user.excel-import.create');
Route::get('user/results', [UserController::class, 'getManagerUserResults'])->name('user.results');
Route::get('user/result/detail/{resultId}', [UserController::class, 'getManagerUserResultDetail'])->name('user.result.detail');
Route::delete('user/multiple-destroy', [UserController::class, 'postMultipleDestroy'])->name('user.multiple.destroy');
Route::get('/user/mebbis-import', [UserController::class, 'getImportMebbis'])->name('user.mebbis.import');
Route::post('/user/mebbis/store', [UserController::class, 'postMebbisStore'])->name('user.mebbis.store');
Route::resource('user', UserController::class);
Route::resource('live-lesson', LiveLessonController::class);
Route::resource('course-teacher', CourseTeacherController::class);
Route::resource('car', CarController::class);
Route::get('appointment-car', [AppointmentController::class, 'getManagerAppointment'])->name('appointment-car');
Route::post('appointment/setting/create', [AppointmentController::class, 'postAppointmentSetting'])->name('appointment.setting.store');
Route::get('appointment/setting', [AppointmentController::class, 'getAppointmentSetting'])->name('appointment.setting');
Route::resource('appointment', AppointmentController::class);
Route::get('/support', [SupportController::class, 'index'])->name('support.index');
Route::put('/support/{support}', [SupportController::class, 'update'])->name('support.update');
Route::delete('/question/bug/{bugId}', [QuestionController::class, 'destroyQuestionBug'])->name('question.bug.destroy');
Route::get('/question/bug', [QuestionController::class, 'getQuestionBug'])->name('question.bug');
Route::resource('question', QuestionController::class);
Route::resource('notification', NotificationController::class);
Route::name('class-exam.')->group(function () {
Route::get('/class-exam', [ClassExamController::class, 'index'])->name('index');
Route::get('/class-exam/create', [ClassExamController::class, 'create'])->name('create');
Route::get('/class-exam/{classId}/edit', [ClassExamController::class, 'update'])->name('edit');
Route::post('/class-exam', [ClassExamController::class, 'store'])->name('store');
Route::delete('/class-exam/{classId}', [ClassExamController::class, 'destroy'])->name('destroy');
});
});
Route::prefix('teacher')->name('teacher.')->middleware(['auth', 'check.role', 'check.user.status', 'check.invoice.status', 'locale'])->group(function () {
Route::resource('appointment', \App\Http\Controllers\Teacher\AppointmentController::class);
Route::resource('profile', ProfileController::class);
});
Route::prefix('admin')->name('admin.')->middleware(['auth', 'check.role'])->group(function () {
Route::get('dashboard', [AdminController::class, 'getAdminDashboard'])->name('dashboard');
Route::resource('language', LanguageController::class);
Route::resource('company', CompanyController::class);
Route::resource('group', GroupController::class);
Route::resource('period', PeriodController::class);
Route::delete('/question/bug/{bugId}', [\App\Http\Controllers\Admin\QuestionController::class, 'destroyQuestionBug'])->name('question.bug.destroy');
Route::get('/question/bug', [\App\Http\Controllers\Admin\QuestionController::class, 'getQuestionBug'])->name('question.bug');
Route::resource('question', \App\Http\Controllers\Admin\QuestionController::class);
Route::resource('type', QuestionTypeController::class);
Route::resource('manager-user', ManagerUserController::class);
Route::resource('car-type', CarTypeController::class);
Route::resource('lesson-content', LessonContentController::class);
Route::resource('coupon', CouponController::class);
Route::resource('package', PackageController::class);
Route::resource('payment-plan', PaymentPlanController::class);
Route::get('invoice/show/{invoiceId}', [InvoiceController::class, 'getInvoiceShow'])->name('company.invoice.show');
Route::get('invoice/{companyId}', [InvoiceController::class, 'getInvoice'])->name('company.invoice');
Route::post('invoice/confirm-pay', [InvoiceController::class, 'postConfirmPay'])->name('company.invoice.confirm.pay');
Route::get('profile', [AdminController::class, 'getProfile'])->name('profile.edit');
Route::put('profile', [AdminController::class, 'updateProfile'])->name('profile.update');
});
Route::prefix('static-page')->name('static.page.')->group(function () {
Route::view('/privacy-policy', 'static-pages.privacy-policy')->name('privacy-policy');
});
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/routes/channels.php | routes/channels.php | <?php
use Illuminate\Support\Facades\Broadcast;
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/routes/api.php | routes/api.php | <?php
use App\Http\Controllers\API\QuestionController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Route::get('/fetchQuestion', [QuestionController::class, 'index']);
Route::post('/postUserAnswer', [QuestionController::class, 'store']);
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/routes/console.php | routes/console.php | <?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/public/index.php | public/index.php | <?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If The Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is in maintenance / demo mode via the "down" command
| we will load this file so that any pre-rendered content can be shown
| instead of starting the framework, which could cause an exception.
|
*/
if (file_exists(__DIR__.'/../storage/framework/maintenance.php')) {
require __DIR__.'/../storage/framework/maintenance.php';
}
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/
require __DIR__.'/../vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(
$request = Request::capture()
))->send();
$kernel->terminate($request, $response);
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/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 place the application's name in a notification or
| any other location as required by the application or its packages.
|
*/
'name' => env('APP_NAME', 'Laravel'),
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services the application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => (bool) env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => env('APP_URL', 'http://localhost'),
'asset_url' => env('ASSET_URL', null),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'tr',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'tr',
/*
|--------------------------------------------------------------------------
| Faker Locale
|--------------------------------------------------------------------------
|
| This locale will be used by the Faker PHP library when generating fake
| data for your database seeds. For example, this will be used to get
| localized telephone numbers, street address information and more.
|
*/
'faker_locale' => 'tr_TR',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
/*
* Package Service Providers...
*/
//Barryvdh\Debugbar\ServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
Maatwebsite\Excel\ExcelServiceProvider::class,
EloquentFilter\ServiceProvider::class,
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Arr' => Illuminate\Support\Arr::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
'Bus' => Illuminate\Support\Facades\Bus::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'Date' => Illuminate\Support\Facades\Date::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Http' => Illuminate\Support\Facades\Http::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'RateLimiter' => Illuminate\Support\Facades\RateLimiter::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
// 'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'Str' => Illuminate\Support\Str::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Debugbar' => Barryvdh\Debugbar\Facade::class,
'Image' => Intervention\Image\Facades\Image::class,
'Excel' => Maatwebsite\Excel\Facades\Excel::class,
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/image.php | config/image.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Image Driver
|--------------------------------------------------------------------------
|
| Intervention Image supports "GD Library" and "Imagick" to process images
| internally. You may choose one of them according to your PHP
| configuration. By default PHP's "GD Library" implementation is used.
|
| Supported: "gd", "imagick"
|
*/
'driver' => 'gd',
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/larafirebase.php | config/larafirebase.php | <?php
return [
'authentication_key' => env('FIREBASE_AUTHENCATION_KEY'),
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/logging.php | config/logging.php | <?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
| one of the channels defined in the "channels" configuration array.
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog",
| "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
'ignore_exceptions' => false,
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => 14,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log',
'emoji' => ':boom:',
'level' => env('LOG_LEVEL', 'critical'),
],
'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => SyslogUdpHandler::class,
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
],
],
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER'),
'with' => [
'stream' => 'php://stderr',
],
],
'syslog' => [
'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'),
],
'errorlog' => [
'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'),
],
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/session.php | config/session.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "dynamodb", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
|
*/
'encrypt' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => env('SESSION_CONNECTION', null),
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| While using one of the framework's cache driven session backends you may
| list a cache store that should be used for these sessions. This value
| must match with one of the application's configured cache "stores".
|
| Affects: "apc", "dynamodb", "memcached", "redis"
|
*/
'store' => env('SESSION_STORE', null),
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
),
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => env('SESSION_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you when it can't be done securely.
|
*/
'secure' => env('SESSION_SECURE_COOKIE'),
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. You are free to modify this option if needed.
|
*/
'http_only' => true,
/*
|--------------------------------------------------------------------------
| Same-Site Cookies
|--------------------------------------------------------------------------
|
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| will set this value to "lax" since this is a secure default value.
|
| Supported: "lax", "strict", "none", null
|
*/
'same_site' => null,
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/queue.php | config/queue.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
|
*/
'default' => env('QUEUE_CONNECTION', 'sync'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
'after_commit' => false,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
'block_for' => 0,
'after_commit' => false,
],
'sqs' => [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'after_commit' => false,
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
'after_commit' => false,
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/debugbar.php | config/debugbar.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Debugbar Settings
|--------------------------------------------------------------------------
|
| Debugbar is enabled by default, when debug is set to true in app.php.
| You can override the value by setting enable to true or false instead of null.
|
| You can provide an array of URI's that must be ignored (eg. 'api/*')
|
*/
'enabled' => env('DEBUGBAR_ENABLED', null),
'except' => [
'telescope*',
'horizon*',
],
/*
|--------------------------------------------------------------------------
| Storage settings
|--------------------------------------------------------------------------
|
| DebugBar stores data for session/ajax requests.
| You can disable this, so the debugbar stores data in headers/session,
| but this can cause problems with large data collectors.
| By default, file storage (in the storage folder) is used. Redis and PDO
| can also be used. For PDO, run the package migrations first.
|
*/
'storage' => [
'enabled' => true,
'driver' => 'file', // redis, file, pdo, socket, custom
'path' => storage_path('debugbar'), // For file driver
'connection' => null, // Leave null for default connection (Redis/PDO)
'provider' => '', // Instance of StorageInterface for custom driver
'hostname' => '127.0.0.1', // Hostname to use with the "socket" driver
'port' => 2304, // Port to use with the "socket" driver
],
/*
|--------------------------------------------------------------------------
| Vendors
|--------------------------------------------------------------------------
|
| Vendor files are included by default, but can be set to false.
| This can also be set to 'js' or 'css', to only include javascript or css vendor files.
| Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
| and for js: jquery and and highlight.js
| So if you want syntax highlighting, set it to true.
| jQuery is set to not conflict with existing jQuery scripts.
|
*/
'include_vendors' => true,
/*
|--------------------------------------------------------------------------
| Capture Ajax Requests
|--------------------------------------------------------------------------
|
| The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
| you can use this option to disable sending the data through the headers.
|
| Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools.
|
| Note for your request to be identified as ajax requests they must either send the header
| X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header.
*/
'capture_ajax' => true,
'add_ajax_timing' => false,
/*
|--------------------------------------------------------------------------
| Custom Error Handler for Deprecated warnings
|--------------------------------------------------------------------------
|
| When enabled, the Debugbar shows deprecated warnings for Symfony components
| in the Messages tab.
|
*/
'error_handler' => false,
/*
|--------------------------------------------------------------------------
| Clockwork integration
|--------------------------------------------------------------------------
|
| The Debugbar can emulate the Clockwork headers, so you can use the Chrome
| Extension, without the server-side code. It uses Debugbar collectors instead.
|
*/
'clockwork' => false,
/*
|--------------------------------------------------------------------------
| DataCollectors
|--------------------------------------------------------------------------
|
| Enable/disable DataCollectors
|
*/
'collectors' => [
'phpinfo' => true, // Php version
'messages' => true, // Messages
'time' => true, // Time Datalogger
'memory' => true, // Memory usage
'exceptions' => true, // Exception displayer
'log' => true, // Logs from Monolog (merged in messages if enabled)
'db' => true, // Show database (PDO) queries and bindings
'views' => true, // Views with their data
'route' => true, // Current route information
'auth' => false, // Display Laravel authentication status
'gate' => true, // Display Laravel Gate checks
'session' => true, // Display session data
'symfony_request' => true, // Only one can be enabled..
'mail' => true, // Catch mail messages
'laravel' => false, // Laravel version and environment
'events' => false, // All events fired
'default_request' => false, // Regular or special Symfony request logger
'logs' => false, // Add the latest log messages
'files' => false, // Show the included files
'config' => false, // Display config settings
'cache' => false, // Display cache events
'models' => true, // Display models
'livewire' => true, // Display Livewire (when available)
],
/*
|--------------------------------------------------------------------------
| Extra options
|--------------------------------------------------------------------------
|
| Configure some DataCollectors
|
*/
'options' => [
'auth' => [
'show_name' => true, // Also show the users name/email in the debugbar
],
'db' => [
'with_params' => true, // Render SQL with the parameters substituted
'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults)
'timeline' => false, // Add the queries to the timeline
'duration_background' => true, // Show shaded background on each query relative to how long it took to execute.
'explain' => [ // Show EXPLAIN output on queries
'enabled' => false,
'types' => ['SELECT'], // Deprecated setting, is always only SELECT
],
'hints' => false, // Show hints for common mistakes
'show_copy' => false, // Show copy button next to the query
],
'mail' => [
'full_log' => false,
],
'views' => [
'timeline' => false, // Add the views to the timeline (Experimental)
'data' => false, //Note: Can slow down the application, because the data can be quite large..
],
'route' => [
'label' => true, // show complete route on bar
],
'logs' => [
'file' => null,
],
'cache' => [
'values' => true, // collect cache values
],
],
/*
|--------------------------------------------------------------------------
| Inject Debugbar in Response
|--------------------------------------------------------------------------
|
| Usually, the debugbar is added just before </body>, by listening to the
| Response after the App is done. If you disable this, you have to add them
| in your template yourself. See http://phpdebugbar.com/docs/rendering.html
|
*/
'inject' => true,
/*
|--------------------------------------------------------------------------
| DebugBar route prefix
|--------------------------------------------------------------------------
|
| Sometimes you want to set route prefix to be used by DebugBar to load
| its resources from. Usually the need comes from misconfigured web server or
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
*/
'route_prefix' => '_debugbar',
/*
|--------------------------------------------------------------------------
| DebugBar route domain
|--------------------------------------------------------------------------
|
| By default DebugBar route served from the same domain that request served.
| To override default domain, specify it as a non-empty value.
*/
'route_domain' => null,
/*
|--------------------------------------------------------------------------
| DebugBar theme
|--------------------------------------------------------------------------
|
| Switches between light and dark theme. If set to auto it will respect system preferences
| Possible values: auto, light, dark
*/
'theme' => env('DEBUGBAR_THEME', 'auto'),
/*
|--------------------------------------------------------------------------
| Backtrace stack limit
|--------------------------------------------------------------------------
|
| By default, the DebugBar limits the number of frames returned by the 'debug_backtrace()' function.
| If you need larger stacktraces, you can increase this number. Setting it to 0 will result in no limit.
*/
'debug_backtrace_limit' => 50,
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/cache.php | config/cache.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
*/
'default' => env('CACHE_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
| Supported drivers: "apc", "array", "database", "file",
| "memcached", "redis", "dynamodb", "octane", "null"
|
*/
'stores' => [
'apc' => [
'driver' => 'apc',
],
'array' => [
'driver' => 'array',
'serialize' => false,
],
'database' => [
'driver' => 'database',
'table' => 'cache',
'connection' => null,
'lock_connection' => null,
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
],
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'cache',
'lock_connection' => 'default',
],
'dynamodb' => [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
],
'octane' => [
'driver' => 'octane',
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing a RAM based store such as APC or Memcached, there might
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
|
*/
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'),
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/eloquentfilter.php | config/eloquentfilter.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Eloquent Filter Settings
|--------------------------------------------------------------------------
|
| This is the namespace all you Eloquent Model Filters will reside
|
*/
'namespace' => 'App\\ModelFilters\\',
/*
|--------------------------------------------------------------------------
| Custom generator stub
|--------------------------------------------------------------------------
|
| If you want to override the default stub this package provides
| you can enter the path to your own at this point
|
*/
// 'generator' => [
// 'stub' => app_path('stubs/modelfilter.stub')
// ]
/*
|--------------------------------------------------------------------------
| Default Paginator Limit For `paginateFilter` and `simplePaginateFilter`
|--------------------------------------------------------------------------
|
| Set paginate limit
|
*/
'paginate_limit' => env('PAGINATION_LIMIT_DEFAULT', 15),
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/hashing.php | config/hashing.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Hash Driver
|--------------------------------------------------------------------------
|
| This option controls the default hash driver that will be used to hash
| passwords for your application. By default, the bcrypt algorithm is
| used; however, you remain free to modify this option if you wish.
|
| Supported: "bcrypt", "argon", "argon2id"
|
*/
'driver' => 'bcrypt',
/*
|--------------------------------------------------------------------------
| Bcrypt Options
|--------------------------------------------------------------------------
|
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Bcrypt algorithm. This will allow you
| to control the amount of time it takes to hash the given password.
|
*/
'bcrypt' => [
'rounds' => env('BCRYPT_ROUNDS', 10),
],
/*
|--------------------------------------------------------------------------
| Argon Options
|--------------------------------------------------------------------------
|
| Here you may specify the configuration options that should be used when
| passwords are hashed using the Argon algorithm. These will allow you
| to control the amount of time it takes to hash the given password.
|
*/
'argon' => [
'memory' => 1024,
'threads' => 2,
'time' => 2,
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/view.php | config/view.php | <?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be checked for your views. Of course
| the usual Laravel view path has already been registered for you.
|
*/
'paths' => [
resource_path('views'),
],
/*
|--------------------------------------------------------------------------
| Compiled View Path
|--------------------------------------------------------------------------
|
| This option determines where all the compiled Blade templates will be
| stored for your application. Typically, this is within the storage
| directory. However, as usual, you are free to change this value.
|
*/
'compiled' => env(
'VIEW_COMPILED_PATH',
realpath(storage_path('framework/views'))
),
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/database.php | config/database.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => env('DB_CONNECTION', 'mysql'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'url' => env('DATABASE_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
],
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => false,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'pgsql' => [
'driver' => 'pgsql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'prefix_indexes' => true,
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'prefix_indexes' => true,
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer body of commands than a typical key-value system
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
],
'default' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
],
'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
],
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/services.php | config/services.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Mailgun, Postmark, AWS and more. This file provides the de facto
| location for this type of information, allowing packages to have
| a conventional file to locate the various service credentials.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
],
'postmark' => [
'token' => env('POSTMARK_TOKEN'),
],
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/flare.php | config/flare.php | <?php
use Spatie\FlareClient\FlareMiddleware\AddGitInformation;
use Spatie\FlareClient\FlareMiddleware\CensorRequestBodyFields;
use Spatie\FlareClient\FlareMiddleware\CensorRequestHeaders;
use Spatie\FlareClient\FlareMiddleware\RemoveRequestIp;
use Spatie\LaravelIgnition\FlareMiddleware\AddDumps;
use Spatie\LaravelIgnition\FlareMiddleware\AddEnvironmentInformation;
use Spatie\LaravelIgnition\FlareMiddleware\AddExceptionInformation;
use Spatie\LaravelIgnition\FlareMiddleware\AddJobs;
use Spatie\LaravelIgnition\FlareMiddleware\AddLogs;
use Spatie\LaravelIgnition\FlareMiddleware\AddNotifierName;
use Spatie\LaravelIgnition\FlareMiddleware\AddQueries;
return [
/*
|
|--------------------------------------------------------------------------
| Flare API key
|--------------------------------------------------------------------------
|
| Specify Flare's API key below to enable error reporting to the service.
|
| More info: https://flareapp.io/docs/general/projects
|
*/
'key' => env('FLARE_KEY'),
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
|
| These middleware will modify the contents of the report sent to Flare.
|
*/
'flare_middleware' => [
RemoveRequestIp::class,
AddGitInformation::class,
AddNotifierName::class,
AddEnvironmentInformation::class,
AddExceptionInformation::class,
AddDumps::class,
AddLogs::class => [
'maximum_number_of_collected_logs' => 200,
],
AddQueries::class => [
'maximum_number_of_collected_queries' => 200,
'report_query_bindings' => true,
],
AddJobs::class => [
'max_chained_job_reporting_depth' => 5,
],
CensorRequestBodyFields::class => [
'censor_fields' => [
'password',
'password_confirmation',
],
],
CensorRequestHeaders::class => [
'headers' => [
'API-KEY',
],
],
],
/*
|--------------------------------------------------------------------------
| Reporting log statements
|--------------------------------------------------------------------------
|
| If this setting is `false` log statements won't be sent as events to Flare,
| no matter which error level you specified in the Flare log channel.
|
*/
'send_logs_as_events' => true,
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/filesystems.php | config/filesystems.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/
'default' => env('FILESYSTEM_DRIVER', 'local'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "sftp", "s3"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
],
],
/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/
'links' => [
public_path('storage') => storage_path('app/public'),
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/tinker.php | config/tinker.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Console Commands
|--------------------------------------------------------------------------
|
| This option allows you to add additional Artisan commands that should
| be available within the Tinker environment. Once the command is in
| this array you may execute the command in Tinker using its name.
|
*/
'commands' => [
// App\Console\Commands\ExampleCommand::class,
],
/*
|--------------------------------------------------------------------------
| Auto Aliased Classes
|--------------------------------------------------------------------------
|
| Tinker will not automatically alias classes in your vendor namespaces
| but you may explicitly allow a subset of classes to get aliased by
| adding the names of each of those classes to the following list.
|
*/
'alias' => [
//
],
/*
|--------------------------------------------------------------------------
| Classes That Should Not Be Aliased
|--------------------------------------------------------------------------
|
| Typically, Tinker automatically aliases classes as you require them in
| Tinker. However, you may wish to never alias certain classes, which
| you may accomplish by listing the classes in the following array.
|
*/
'dont_alias' => [
'App\Nova',
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/mail.php | config/mail.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send any email
| messages sent by your application. Alternative mailers may be setup
| and used as needed; however, this mailer will be used by default.
|
*/
'default' => env('MAIL_MAILER', 'smtp'),
/*
|--------------------------------------------------------------------------
| Mailer Configurations
|--------------------------------------------------------------------------
|
| Here you may configure all of the mailers used by your application plus
| their respective settings. Several examples have been configured for
| you and you are free to add your own as your application requires.
|
| Laravel supports a variety of mail "transport" drivers to be used while
| sending an e-mail. You will specify which one you are using for your
| mailers below. You are free to add additional mailers as required.
|
| Supported: "smtp", "sendmail", "mailgun", "ses",
| "postmark", "log", "array"
|
*/
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'auth_mode' => null,
],
'ses' => [
'transport' => 'ses',
],
'mailgun' => [
'transport' => 'mailgun',
],
'postmark' => [
'transport' => 'postmark',
],
'sendmail' => [
'transport' => 'sendmail',
'path' => '/usr/sbin/sendmail -bs',
],
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
],
'array' => [
'transport' => 'array',
],
],
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
|--------------------------------------------------------------------------
|
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
|
*/
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/ignition.php | config/ignition.php | <?php
use Spatie\Ignition\Solutions\SolutionProviders\BadMethodCallSolutionProvider;
use Spatie\Ignition\Solutions\SolutionProviders\MergeConflictSolutionProvider;
use Spatie\Ignition\Solutions\SolutionProviders\UndefinedPropertySolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\DefaultDbNameSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\GenericLaravelExceptionSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\IncorrectValetDbCredentialsSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\InvalidRouteActionSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingAppKeySolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingColumnSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingImportSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingLivewireComponentSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\MissingMixManifestSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\RunningLaravelDuskInProductionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\TableNotFoundSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\UndefinedViewVariableSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\UnknownValidationSolutionProvider;
use Spatie\LaravelIgnition\Solutions\SolutionProviders\ViewNotFoundSolutionProvider;
return [
/*
|--------------------------------------------------------------------------
| Editor
|--------------------------------------------------------------------------
|
| Choose your preferred editor to use when clicking any edit button.
|
| Supported: "phpstorm", "vscode", "vscode-insiders", "textmate", "emacs",
| "sublime", "atom", "nova", "macvim", "idea", "netbeans",
| "xdebug"
|
*/
'editor' => env('IGNITION_EDITOR', 'phpstorm'),
/*
|--------------------------------------------------------------------------
| Theme
|--------------------------------------------------------------------------
|
| Here you may specify which theme Ignition should use.
|
| Supported: "light", "dark", "auto"
|
*/
'theme' => env('IGNITION_THEME', 'auto'),
/*
|--------------------------------------------------------------------------
| Sharing
|--------------------------------------------------------------------------
|
| You can share local errors with colleagues or others around the world.
| Sharing is completely free and doesn't require an account on Flare.
|
| If necessary, you can completely disable sharing below.
|
*/
'enable_share_button' => env('IGNITION_SHARING_ENABLED', true),
/*
|--------------------------------------------------------------------------
| Register Ignition commands
|--------------------------------------------------------------------------
|
| Ignition comes with an additional make command that lets you create
| new solution classes more easily. To keep your default Laravel
| installation clean, this command is not registered by default.
|
| You can enable the command registration below.
|
*/
'register_commands' => env('REGISTER_IGNITION_COMMANDS', false),
/*
|--------------------------------------------------------------------------
| Solution Providers
|--------------------------------------------------------------------------
|
| You may specify a list of solution providers (as fully qualified class
| names) that shouldn't be loaded. Ignition will ignore these classes
| and possible solutions provided by them will never be displayed.
|
*/
'solution_providers' => [
// from spatie/ignition
BadMethodCallSolutionProvider::class,
MergeConflictSolutionProvider::class,
UndefinedPropertySolutionProvider::class,
// from spatie/laravel-ignition
IncorrectValetDbCredentialsSolutionProvider::class,
MissingAppKeySolutionProvider::class,
DefaultDbNameSolutionProvider::class,
TableNotFoundSolutionProvider::class,
MissingImportSolutionProvider::class,
InvalidRouteActionSolutionProvider::class,
ViewNotFoundSolutionProvider::class,
RunningLaravelDuskInProductionProvider::class,
MissingColumnSolutionProvider::class,
UnknownValidationSolutionProvider::class,
MissingMixManifestSolutionProvider::class,
MissingLivewireComponentSolutionProvider::class,
UndefinedViewVariableSolutionProvider::class,
GenericLaravelExceptionSolutionProvider::class,
],
/*
|--------------------------------------------------------------------------
| Ignored Solution Providers
|--------------------------------------------------------------------------
|
| You may specify a list of solution providers (as fully qualified class
| names) that shouldn't be loaded. Ignition will ignore these classes
| and possible solutions provided by them will never be displayed.
|
*/
'ignored_solution_providers' => [
],
/*
|--------------------------------------------------------------------------
| Runnable Solutions
|--------------------------------------------------------------------------
|
| Some solutions that Ignition displays are runnable and can perform
| various tasks. By default, runnable solutions are enabled when your app
| has debug mode enabled. You may also fully disable this feature.
|
| Default: env('IGNITION_ENABLE_RUNNABLE_SOLUTIONS', env('APP_DEBUG', false))
|
*/
'enable_runnable_solutions' => env('IGNITION_ENABLE_RUNNABLE_SOLUTIONS', env('APP_DEBUG', false)),
/*
|--------------------------------------------------------------------------
| Remote Path Mapping
|--------------------------------------------------------------------------
|
| If you are using a remote dev server, like Laravel Homestead, Docker, or
| even a remote VPS, it will be necessary to specify your path mapping.
|
| Leaving one, or both of these, empty or null will not trigger the remote
| URL changes and Ignition will treat your editor links as local files.
|
| "remote_sites_path" is an absolute base path for your sites or projects
| in Homestead, Vagrant, Docker, or another remote development server.
|
| Example value: "/home/vagrant/Code"
|
| "local_sites_path" is an absolute base path for your sites or projects
| on your local computer where your IDE or code editor is running on.
|
| Example values: "/Users/<name>/Code", "C:\Users\<name>\Documents\Code"
|
*/
'remote_sites_path' => env('IGNITION_REMOTE_SITES_PATH', base_path()),
'local_sites_path' => env('IGNITION_LOCAL_SITES_PATH', ''),
/*
|--------------------------------------------------------------------------
| Housekeeping Endpoint Prefix
|--------------------------------------------------------------------------
|
| Ignition registers a couple of routes when it is enabled. Below you may
| specify a route prefix that will be used to host all internal links.
|
*/
'housekeeping_endpoint_prefix' => '_ignition',
/*
|--------------------------------------------------------------------------
| Settings File
|--------------------------------------------------------------------------
|
| Ignition allows you to save your settings to a specific global file.
|
| If no path is specified, a file with settings will be saved to the user's
| home directory. The directory depends on the OS and its settings but it's
| typically `~/.ignition.json`. In this case, the settings will be applied
| to all of your projects where Ignition is used and the path is not
| specified.
|
| However, if you want to store your settings on a project basis, or you
| want to keep them in another directory, you can specify a path where
| the settings file will be saved. The path should be an existing directory
| with correct write access.
| For example, create a new `ignition` folder in the storage directory and
| use `storage_path('ignition')` as the `settings_file_path`.
|
| Default value: '' (empty string)
*/
'settings_file_path' => '',
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/excel.php | config/excel.php | <?php
use Maatwebsite\Excel\Excel;
return [
'exports' => [
/*
|--------------------------------------------------------------------------
| Chunk size
|--------------------------------------------------------------------------
|
| When using FromQuery, the query is automatically chunked.
| Here you can specify how big the chunk should be.
|
*/
'chunk_size' => 1000,
/*
|--------------------------------------------------------------------------
| Pre-calculate formulas during export
|--------------------------------------------------------------------------
*/
'pre_calculate_formulas' => false,
/*
|--------------------------------------------------------------------------
| Enable strict null comparison
|--------------------------------------------------------------------------
|
| When enabling strict null comparison empty cells ('') will
| be added to the sheet.
*/
'strict_null_comparison' => false,
/*
|--------------------------------------------------------------------------
| CSV Settings
|--------------------------------------------------------------------------
|
| Configure e.g. delimiter, enclosure and line ending for CSV exports.
|
*/
'csv' => [
'delimiter' => ',',
'enclosure' => '"',
'line_ending' => PHP_EOL,
'use_bom' => false,
'include_separator_line' => false,
'excel_compatibility' => false,
],
/*
|--------------------------------------------------------------------------
| Worksheet properties
|--------------------------------------------------------------------------
|
| Configure e.g. default title, creator, subject,...
|
*/
'properties' => [
'creator' => '',
'lastModifiedBy' => '',
'title' => '',
'description' => '',
'subject' => '',
'keywords' => '',
'category' => '',
'manager' => '',
'company' => '',
],
],
'imports' => [
/*
|--------------------------------------------------------------------------
| Read Only
|--------------------------------------------------------------------------
|
| When dealing with imports, you might only be interested in the
| data that the sheet exists. By default we ignore all styles,
| however if you want to do some logic based on style data
| you can enable it by setting read_only to false.
|
*/
'read_only' => true,
/*
|--------------------------------------------------------------------------
| Ignore Empty
|--------------------------------------------------------------------------
|
| When dealing with imports, you might be interested in ignoring
| rows that have null values or empty strings. By default rows
| containing empty strings or empty values are not ignored but can be
| ignored by enabling the setting ignore_empty to true.
|
*/
'ignore_empty' => false,
/*
|--------------------------------------------------------------------------
| Heading Row Formatter
|--------------------------------------------------------------------------
|
| Configure the heading row formatter.
| Available options: none|slug|custom
|
*/
'heading_row' => [
'formatter' => 'slug',
],
/*
|--------------------------------------------------------------------------
| CSV Settings
|--------------------------------------------------------------------------
|
| Configure e.g. delimiter, enclosure and line ending for CSV imports.
|
*/
'csv' => [
'delimiter' => ',',
'enclosure' => '"',
'escape_character' => '\\',
'contiguous' => false,
'input_encoding' => 'UTF-8',
],
/*
|--------------------------------------------------------------------------
| Worksheet properties
|--------------------------------------------------------------------------
|
| Configure e.g. default title, creator, subject,...
|
*/
'properties' => [
'creator' => '',
'lastModifiedBy' => '',
'title' => '',
'description' => '',
'subject' => '',
'keywords' => '',
'category' => '',
'manager' => '',
'company' => '',
],
],
/*
|--------------------------------------------------------------------------
| Extension detector
|--------------------------------------------------------------------------
|
| Configure here which writer/reader type should be used when the package
| needs to guess the correct type based on the extension alone.
|
*/
'extension_detector' => [
'xlsx' => Excel::XLSX,
'xlsm' => Excel::XLSX,
'xltx' => Excel::XLSX,
'xltm' => Excel::XLSX,
'xls' => Excel::XLS,
'xlt' => Excel::XLS,
'ods' => Excel::ODS,
'ots' => Excel::ODS,
'slk' => Excel::SLK,
'xml' => Excel::XML,
'gnumeric' => Excel::GNUMERIC,
'htm' => Excel::HTML,
'html' => Excel::HTML,
'csv' => Excel::CSV,
'tsv' => Excel::TSV,
/*
|--------------------------------------------------------------------------
| PDF Extension
|--------------------------------------------------------------------------
|
| Configure here which Pdf driver should be used by default.
| Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF
|
*/
'pdf' => Excel::DOMPDF,
],
/*
|--------------------------------------------------------------------------
| Value Binder
|--------------------------------------------------------------------------
|
| PhpSpreadsheet offers a way to hook into the process of a value being
| written to a cell. In there some assumptions are made on how the
| value should be formatted. If you want to change those defaults,
| you can implement your own default value binder.
|
| Possible value binders:
|
| [x] Maatwebsite\Excel\DefaultValueBinder::class
| [x] PhpOffice\PhpSpreadsheet\Cell\StringValueBinder::class
| [x] PhpOffice\PhpSpreadsheet\Cell\AdvancedValueBinder::class
|
*/
'value_binder' => [
'default' => Maatwebsite\Excel\DefaultValueBinder::class,
],
'cache' => [
/*
|--------------------------------------------------------------------------
| Default cell caching driver
|--------------------------------------------------------------------------
|
| By default PhpSpreadsheet keeps all cell values in memory, however when
| dealing with large files, this might result into memory issues. If you
| want to mitigate that, you can configure a cell caching driver here.
| When using the illuminate driver, it will store each value in a the
| cache store. This can slow down the process, because it needs to
| store each value. You can use the "batch" store if you want to
| only persist to the store when the memory limit is reached.
|
| Drivers: memory|illuminate|batch
|
*/
'driver' => 'memory',
/*
|--------------------------------------------------------------------------
| Batch memory caching
|--------------------------------------------------------------------------
|
| When dealing with the "batch" caching driver, it will only
| persist to the store when the memory limit is reached.
| Here you can tweak the memory limit to your liking.
|
*/
'batch' => [
'memory_limit' => 60000,
],
/*
|--------------------------------------------------------------------------
| Illuminate cache
|--------------------------------------------------------------------------
|
| When using the "illuminate" caching driver, it will automatically use
| your default cache store. However if you prefer to have the cell
| cache on a separate store, you can configure the store name here.
| You can use any store defined in your cache config. When leaving
| at "null" it will use the default store.
|
*/
'illuminate' => [
'store' => null,
],
],
/*
|--------------------------------------------------------------------------
| Transaction Handler
|--------------------------------------------------------------------------
|
| By default the import is wrapped in a transaction. This is useful
| for when an import may fail and you want to retry it. With the
| transactions, the previous import gets rolled-back.
|
| You can disable the transaction handler by setting this to null.
| Or you can choose a custom made transaction handler here.
|
| Supported handlers: null|db
|
*/
'transactions' => [
'handler' => 'db',
],
'temporary_files' => [
/*
|--------------------------------------------------------------------------
| Local Temporary Path
|--------------------------------------------------------------------------
|
| When exporting and importing files, we use a temporary file, before
| storing reading or downloading. Here you can customize that path.
|
*/
'local_path' => storage_path('framework/laravel-excel'),
/*
|--------------------------------------------------------------------------
| Remote Temporary Disk
|--------------------------------------------------------------------------
|
| When dealing with a multi server setup with queues in which you
| cannot rely on having a shared local temporary path, you might
| want to store the temporary file on a shared disk. During the
| queue executing, we'll retrieve the temporary file from that
| location instead. When left to null, it will always use
| the local path. This setting only has effect when using
| in conjunction with queued imports and exports.
|
*/
'remote_disk' => null,
'remote_prefix' => null,
/*
|--------------------------------------------------------------------------
| Force Resync
|--------------------------------------------------------------------------
|
| When dealing with a multi server setup as above, it's possible
| for the clean up that occurs after entire queue has been run to only
| cleanup the server that the last AfterImportJob runs on. The rest of the server
| would still have the local temporary file stored on it. In this case your
| local storage limits can be exceeded and future imports won't be processed.
| To mitigate this you can set this config value to be true, so that after every
| queued chunk is processed the local temporary file is deleted on the server that
| processed it.
|
*/
'force_resync_remote' => null,
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/cors.php | config/cors.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/
'paths' => ['api/*', 'sanctum/csrf-cookie'],
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/broadcasting.php | config/broadcasting.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
| Supported: "pusher", "ably", "redis", "log", "null"
|
*/
'default' => env('BROADCAST_DRIVER', 'null'),
/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => true,
],
],
'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
'null' => [
'driver' => 'null',
],
],
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/config/auth.php | config/auth.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| Supported: "session", "token"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
'hash' => false,
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model / table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
'throttle' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Password Confirmation Timeout
|--------------------------------------------------------------------------
|
| Here you may define the amount of seconds before a password confirmation
| times out and the user is prompted to re-enter their password via the
| confirmation screen. By default, the timeout lasts for three hours.
|
*/
'password_timeout' => 10800,
];
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/factories/CompanyFactory.php | database/factories/CompanyFactory.php | <?php
namespace Database\Factories;
use App\Models\Company;
use Illuminate\Database\Eloquent\Factories\Factory;
class CompanyFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Company::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->company,
'start_date' => $this->faker->date,
'end_date' => $this->faker->date,
];
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/factories/UserFactory.php | database/factories/UserFactory.php | <?php
namespace Database\Factories;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = User::class;
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'name' => $this->faker->name,
'surname' => $this->faker->name,
'email' => $this->faker->unique()->safeEmail,
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'type' => User::Admin,
'remember_token' => Str::random(10),
];
}
/**
* Indicate that the model's email address should be unverified.
*/
public function unverified(): Factory
{
return $this->state(function (array $attributes) {
return [
'email_verified_at' => null,
];
});
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_08_06_123434_create_periods_table.php | database/migrations/2021_08_06_123434_create_periods_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePeriodsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('periods', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('periods');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_08_06_122820_create_user_infos_table.php | database/migrations/2021_08_06_122820_create_user_infos_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserInfosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_infos', function (Blueprint $table) {
$table->id();
$table->string('phone', 300)->nullable();
$table->string('address', 600)->nullable();
$table->boolean('status')->default(1);
$table->foreignId('periodId')->nullable();
$table->foreignId('monthId')->nullable();
$table->foreignId('groupId')->nullable();
$table->foreignId('languageId')->default(1);
$table->string('photo')->default('/images/avatar.svg');
$table->foreignId('companyId')->nullable();
$table->foreignId('userId')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_infos');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_08_12_164825_create_months_table.php | database/migrations/2021_08_12_164825_create_months_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMonthsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('months', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('months');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_09_11_171158_create_company_questions_table.php | database/migrations/2021_09_11_171158_create_company_questions_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCompanyQuestionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('company_questions', function (Blueprint $table) {
$table->id();
$table->foreignId('questionId')->index();
$table->foreignId('companyId')->index();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('company_questions');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_09_09_173506_create_notification_device_tokens_table.php | database/migrations/2021_09_09_173506_create_notification_device_tokens_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNotificationDeviceTokensTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notification_device_tokens', function (Blueprint $table) {
$table->id();
$table->foreignId('userId')->index();
$table->string('token');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notification_device_tokens');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_08_30_132338_create_test_result_types_table.php | database/migrations/2021_08_30_132338_create_test_result_types_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTestResultTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('test_result_types', function (Blueprint $table) {
$table->id();
$table->integer('total_question');
$table->integer('correct');
$table->integer('in_correct');
$table->integer('blank_question');
$table->foreignId('testId');
$table->foreignId('typeId');
$table->foreignId('resultId');
$table->foreignId('userId');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('test_result_types');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_08_13_211500_create_supports_table.php | database/migrations/2021_08_13_211500_create_supports_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSupportsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('supports', function (Blueprint $table) {
$table->id();
$table->string('subject');
$table->text('message');
$table->boolean('status')->default(0);
$table->foreignId('userId');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('supports');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_10_05_153614_create_bug_questions_table.php | database/migrations/2021_10_05_153614_create_bug_questions_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBugQuestionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bug_questions', function (Blueprint $table) {
$table->id();
$table->foreignId('questionId');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('bug_questions');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2021_08_04_130333_create_question_types_table.php | database/migrations/2021_08_04_130333_create_question_types_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateQuestionTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('question_types', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('question_types');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
codenteq/laerx | https://github.com/codenteq/laerx/blob/1beced57923761b2f07ca20030a4df11eb05b732/database/migrations/2014_10_12_000000_create_users_table.php | database/migrations/2014_10_12_000000_create_users_table.php | <?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 (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('surname');
$table->string('tc', 11)->unique();
$table->string('email')->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->integer('type');
$table->rememberToken();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}
| php | MIT | 1beced57923761b2f07ca20030a4df11eb05b732 | 2026-01-05T05:20:28.495862Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.