- The Laravel Query Builder
- How does it work?
- Bindings
- Raw queries
- Subqueries
- Aggregates
- How does it work?
- Eloquent
- What's an ORM?
- What's the relationship between Eloquent and the query builder?
- Where is the where?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are an expert full-stack Nuxt developer working on a Nuxt 3 project. | |
## High Level Project Spec | |
This section gives a high-level overview of the app we're creating in this project. | |
- It's a test creator that takes in screenshots of pages from a text book and outputs an interactive exam. | |
- The primary audience of this application is home school teachers who need to create tests for their students | |
- Users expect a friendly but professional look and feel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Reading | |
CsvReader::read($path)->each(function(array $row) { | |
// Do something with $row | |
}); | |
// Writing | |
return CsvWriter::for($data)->writeToHttpFile(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers\Macros; | |
class ApaTitle | |
{ | |
public function __invoke() | |
{ | |
return function ($string) { | |
// Define minor words to be lowercase |
Dear Senator [Last name],
As a concerned constituent, I urge you to support the repeal of Section 174 of the Internal Revenue Code, “Amortization of research and experimental expenditures.” This provision significantly increases taxes for small software businesses like mine, threatening our growth, innovation, and competitiveness.
The repeal of Section 174 is crucial for the following reasons:
- Innovation: Increased taxes hinder small businesses’ ability to invest in research and development, stifling innovation.
- Job loss: Small software businesses drive job creation. The tax increase may force downsizing, leading to job losses.
- Fairness: The tax increase disproportionately affects small businesses, putting them at a disadvantage compared to larger corporations who can afford to pay the increased taxes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function memoize($target) { | |
static $memo = new WeakMap; | |
return new class ($target, $memo) { | |
function __construct( | |
protected $target, | |
protected &$memo, | |
) {} |
- https://specbranch.com/posts/one-big-server/
- https://itnext.io/you-dont-need-microservices-2ad8508b9e27
- https://www.youtube.com/watch?v=uQUxJObxTUs
- https://www.youtube.com/watch?v=y8OnoxKotPQ
- https://tighten.com/blog/tpt-yagni/
- https://segment.com/blog/goodbye-microservices/
- https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction
- https://lucasfcosta.com/2022/07/15/long-term-plans-dont-work.html
- https://martinfowler.com/bliki/MicroservicePrerequisites.html
- https://grugbrain.dev/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<inertia-head> | |
<title v-if="title">{{ title }} - My App</title> | |
<title v-else>My App</title> | |
<slot /> | |
</inertia-head> | |
</template> | |
<script> | |
export default { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PHPUnit extends TestCase | |
{ | |
public function testAssertions() | |
{ | |
$this->assertTrue(true); | |
} | |
} |
NewerOlder