https://media.notthebee.com/articles/6195608e813826195608e81383.jpg
I could watch this all day.
Not the Bee
Just another WordPress site
https://media.notthebee.com/articles/6195608e813826195608e81383.jpg
I could watch this all day.
Not the Bee
https://media.notthebee.com/articles/6195454436119619545443611a.jpg
Warning: graphic. It is what the headline says it is:
Not the Bee
https://media.notthebee.com/articles/619520e866ae3619520e866ae4.jpg
Three years ago, then-teenager Nicholas Sandmann had his name dragged through the mud by the media clowns for the sin of wearing a MAGA hat while a man yelled in his face.
Not the Bee
https://www.louderwithcrowder.com/media-library/image.png?id=27984877&width=980
Day Two of Rittenhouse jury deliberation has begun. As we wait, we reflect on what garbage human beings the mainstream media has been throughout this entire thing. The main reason he’s on trial is because of lies and untruths the media has spread. And this is just one man’s opinion, but I’m sure being attacked by media is on the mind of at last a few jurors if they’re thinking about voting to acquit Rittenhouse. Joe Rogan is someone who knows firsthand how much the media lies and swears by it. Once people discover this rant by Dr. Joe, MD, the media will proclaim "who, us?" Brian Stelter is probably crying into his breakfast cheesecake as we speak.
"This information is not based on reality. This is a left-wing cult. They’re pumping stuff out and then they are confirming this belief. They are all getting together, and they are ignoring contrary evidence. They are ignoring any narrative that challenges their belief about what happened, and they are not looking at it realistically. They are only looking at it like you would if you were in a f*cking cult."
As an aside, what a cast of characters! Drew Hernandez, Tim Pool, Blaire White, AND Alex Jones.
More people need to be exposed to who the media is. They won’t just go after you if you hold a different opinion than them or if they think they can use you to advance their leftist narrative. They’ll go after you if they even assume you have a different opinion. Rittenhouse is only one of the most extreme examples of it.
SNL Propaganda Isn’t Even Trying Anymore | Louder With Crowder
youtu.be
Louder With Crowder
https://cdn0.thetruthaboutguns.com/wp-content/uploads/2021/11/2021-11-16_17-02-30.png
While jurors deliberate inside the courthouse in Kenosha, Wisconsin in the Kyle Rittenhouse case – the outcome of which promises to be important for gun owners everywhere – Mark McCloskey is outside arguing with protestors. Why? Because there’s never a dull moment in what has been a circus of a two-week trial.
Mark McCloskey, the St. Louis lawyer who made national headlines last year when he carried a gun on his property near a social justice protest in his neighborhood, argued with a protester outside the Kenosha County Courthouse on Tuesday afternoon.
“It really hurts me that you would have that much hatred,” the protester told McCloskey.
“There is absolutely no hatred involved in what I did,” McCloskey responded. “They came in, storming through my gate, broke down my gate, stormed toward my house, and I was afraid for my life.”
If the jurors can’t reach a decision in the case, Judge Bruce Schroeder will be polling them to find out if they want to continue deliberating. Is McCloskey helping by grabbing another fifteen minutes of fame – or would that be infamy? – on the courthouse steps? Seems unlikely.
Here’s part of the exchange between McCloskey and a protestor.
The Truth About Guns
https://postsrc.com/storage/images/snippets/how-to-add-server-timing-header-information-for-laravel-application.jpeg
To get the server timing information and pass it in the response header in the Laravel application you can make use “
” package by beyondcode. This package allows you to get the total number of milliseconds the application takes to bootstrap, execute and run.
Add Server-Timing header information from within your Laravel apps.
First, you will have to install it using composer using the command below.
composer require beyondcode/laravel-server-timing
To add server-timing header information, you need to add the \BeyondCode\ServerTiming\Middleware\ServerTimingMiddleware::class, middleware to your HTTP Kernel. In order to get the most accurate results, put the middleware as the first one to load in the middleware stack.
\BeyondCode\ServerTiming\Middleware\ServerTimingMiddleware::class
To view the timing you can view your browser inspect window and see the Server Timing tabs.

Sometimes you might also add additional requirements by using the code below. By doing so you will be able to know how long the codes take to execute and whether it requires more optimization for speedy performance.
ServerTiming::start('Running expensive task');
// do something
ServerTiming::stop('Running expensive task');
You can also publish the configuration by running the code below.
php artisan vendor:publish --tag=server-timing-config
In addition to the default configuration, you can add the value of the timing.php is as follows to ensure it syncs with the .env variable.
<?php
return [
'enabled' => env('SERVER_TIMING', false),
];
Laravel News Links
https://www.thefirearmblog.com/blog/wp-content/uploads/2021/11/unnamed-6-180×180.jpg
With increasing restrictions in regards to firearms on YouTube and other social media platforms, new gun owners and those who are interested in building out their first AR are finding it harder and harder to find reliable and simple instructions for their first AR-15 build. Brownells and the living legend Roy Hill are excited to […]
The post Brownells Launches the Interactive “How to Build an AR-15” Video Series appeared first on The Firearm Blog.
The Firearm Blog
https://protone.media/img/header_social.jpg
In this series, I show you new features and improvements to the Laravel framework since the original release of version 8. Last week, I wrote about the Collection class. This week is about the Database and Eloquent features in Laravel 8. The team added so many great improvements to the weekly versions that I split the Database and Eloquent features into two blog posts. Here is part one!
I got most code examples and explanations from the PRs and official documentation.
Add a subquery cross join to the query.
use Illuminate\Support\Facades\DB;
$totalQuery = DB::table('orders')->selectRaw('SUM(price) as total');
DB::table('orders')
->select('*')
->crossJoinSub($totalQuery, 'overall')
->selectRaw('(price / overall.total) * 100 AS percent_of_total')
->get();
We can now do model comparisons between related models, without extra database calls!
// Before: foreign key is leaking from the post model
$post->author_id === $user->id;
// Before: performs extra query to fetch the user model from the author relation
$post->author->is($user);
// After
$post->author()->is($user);
If you would like to perform multiple “upserts” in a single query, then you may use the upsert method instead of multiple updateOrCreate calls.
Flight::upsert([
['departure' => 'Oakland', 'destination' => 'San Diego', 'price' => 99],
['departure' => 'Chicago', 'destination' => 'New York', 'price' => 150]
], ['departure', 'destination'], ['price']);
The explain() method allows you to receive the explanation from the builder (both Query and Eloquent).
User::where('name', 'Illia Sakovich')->explain();
User::where('name', 'Illia Sakovich')->explain()->dd();
If you are eager loading a morphTo relationship, Eloquent will run multiple queries to fetch each type of related model. You may add additional constraints to each of these queries using the MorphTo relation’s constrain method:
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\MorphTo;
$comments = Comment::with(['commentable' => function (MorphTo $morphTo) {
$morphTo->constrain([
Post::class => function (Builder $query) {
$query->whereNull('hidden_at');
},
Video::class => function (Builder $query) {
$query->where('type', 'educational');
},
]);
}])->get();
This method allows you to directly order the query results of a BelongsToMany relation:
class Tag extends Model
{
public $table = 'tags';
}
class Post extends Model
{
public $table = 'posts';
public function tags()
{
return $this->belongsToMany(Tag::class, 'posts_tags', 'post_id', 'tag_id')
->using(PostTagPivot::class)
->withTimestamps()
->withPivot('flag');
}
}
class PostTagPivot extends Pivot
{
protected $table = 'posts_tags';
}
// Somewhere in a controller
public function getPostTags($id)
{
return Post::findOrFail($id)->tags()->orderPivotBy('flag', 'desc')->get();
}
The sole method will return the only record that matches the criteria. If no records are found, a NoRecordsFoundException will be thrown. If multiple records were found, a MultipleRecordsFoundException will be thrown.
DB::table('products')->where('ref', '#123')->sole()
The after method may be used to add columns after an existing column in the schema:
Schema::table('users', function (Blueprint $table) {
$table->after('remember_token', function ($table){
$table->string('card_brand')->nullable();
$table->string('card_last_four', 4)->nullable();
});
});
Laravel automatically assign a class name to all of the migrations. You may now return an anonymous class from your migration file:
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up()
{
Schema::table('people', function (Blueprint $table) {
$table->string('first_name')->nullable();
});
}
};
The new chunkMap method is similar to the each query builder method, where it automatically chunks over the results:
return User::orderBy('name')->chunkMap(fn ($user) => [
'id' => $user->id,
'name' => $user->name,
]), 25);
Since the array cast returns a primitive type, it is not possible to mutate an offset of the array directly. To solve this, the AsArrayObject cast casts your JSON attribute to an ArrayObject class:
// Within model...
$casts = ['options' => AsArrayObject::class];
// Manipulating the options...
$user = User::find(1);
$user->options['foo']['bar'] = 'baz';
$user->save();
If you would like to override all items within the $with property for a single query, you may use the withOnly method:
class Product extends Model{
protected $with = ['prices', 'colours', 'brand'];
public function colours(){ ... }
public function prices(){ ... }
public function brand(){ ... }
}
Product::withOnly(['brand'])->get();
Cursor-based pagination places a “cursor” string in the query string, an encoded string containing the location that the next paginated query should start paginating and the direction it should paginate. This method of pagination is particularly well-suited for large data sets and “infinite” scrolling user interfaces.
use App\Models\User;
use Illuminate\Support\Facades\DB;
$users = User::orderBy('id')->cursorPaginate(10);
$users = DB::table('users')->orderBy('id')->cursorPaginate(10);
In addition to the withCount method, Eloquent now provides withMin, withMax, withAvg, and withSum methods. These methods will place a {relation}_{function}_{column} attribute on your resulting models.
Post::withCount('comments');
Post::withMin('comments', 'created_at');
Post::withMax('comments', 'created_at');
Post::withSum('comments', 'foo');
Post::withAvg('comments', 'foo');
Under the hood, these methods use the withAggregate method:
Post::withAggregate('comments', 'created_at', 'distinct');
Post::withAggregate('comments', 'content', 'length');
Post::withAggregate('comments', 'created_at', 'custom_function');
Comment::withAggregate('post', 'title');
Post::withAggregate('comments', 'content');
In addition to the new with* method above, new load* methods are added to the Collection and Model class.
// Eloquent/Collection
public function loadAggregate($relations, $column, $function = null) {...}
public function loadCount($relations) {...}
public function loadMax($relations, $column) {...}
public function loadMin($relations, $column) {...}
public function loadSum($relations, $column) {...}
public function loadAvg($relations, $column) {...}
// Eloquent/Model
public function loadAggregate($relations, $column, $function = null) {...}
public function loadCount($relations) {...}
public function loadMax($relations, $column) {...}
public function loadMin($relations, $column) {...}
public function loadSum($relations, $column) {...}
public function loadAvg($relations, $column) {...}
public function loadMorphAggregate($relation, $relations, $column, $function = null) {...}
public function loadMorphCount($relation, $relations) {...}
public function loadMorphMax($relation, $relations, $column) {...}
public function loadMorphMin($relation, $relations, $column) {...}
public function loadMorphSum($relation, $relations, $column) {...}
public function loadMorphAvg($relation, $relations, $column) {...}
Add a polymorphic relationship count / exists condition to the query.
public function hasMorph($relation, ...)
public function orHasMorph($relation,...)
public function doesntHaveMorph($relation, ...)
public function whereHasMorph($relation, ...)
public function orWhereHasMorph($relation, ...)
public function orHasMorph($relation, ...)
public function doesntHaveMorph($relation, ...)
public function orDoesntHaveMorph($relation,...)
Example with a closure to customize the relationship query:
// Retrieve comments associated to posts or videos with a title like code%...
$comments = Comment::whereHasMorph(
'commentable',
[Post::class, Video::class],
function (Builder $query) {
$query->where('title', 'like', 'code%');
}
)->get();
// Retrieve comments associated to posts with a title not like code%...
$comments = Comment::whereDoesntHaveMorph(
'commentable',
Post::class,
function (Builder $query) {
$query->where('title', 'like', 'code%');
}
)->get();
Laravel News Links
https://i.kinja-img.com/gawker-media/image/upload/c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_1200/500dd1ed958ca3ec4c3b1d977918acea.jpg
It’s been more than three years since Legendary Pictures and Sunrise announced they would collaborate on a live-action movie based on the venerable franchise Mobile Suit Gundam, the giant robot anime whose shadow all others stand in. Today, we have our first look at Netflix’s film—a sole piece of concept art—and it’s probably not what you were expecting.
Yeah, the image up top of a Gundam walking away from a massive conflagration of fire like basically every action star ever? That’s it, which comes courtesy of the VFX whizzes at Industrial Light and Magic.
We knew that the film would be directed by Kong: Skull Island’s Jordan Vogt-Roberts, who’s also currently on board to direct the live-action movie adaptation of the Metal Gear Solid video game. The movie is being produced by Legendary Pictures, which made Skull Island and the recent spate of Godzilla films, so the studio is doing big business with films starring giants of various types. Even better, the script is by Brian K. Vaughan, who’s written the incredible Saga comic among many others. Basically, there’s every reason to believe Gundam’s (second) foray into live-action will be very, very good.
But boy, that giant robot sure looks like Nic Cage walking away from an explosion, or at least one of the countless action stars who have badassedly walked away from any scene of massive destruction happening right behind them. It’s weird because it does seem to be somewhat celebrating how awesome war is, when the original Mobile Suit Gundam is so focused on the trauma war inflicts on people, especially Amuro Ray, the teenager who inadvertently becomes the Gundam’s pilot and gets swept up in the war between Earth and the space-bound Principality of Zeon. Still, it’s only a single image, and that image looks very good. If it seems a bit off-brand for the very first look, whatever. Since Netflix’s live-action Gundam movie still has no release date, we clearly have plenty of time to see more.
Wondering where our RSS feed went? You can pick the new up one here.
Gizmodo
https://theawesomer.com/photos/2021/11/how_stetson_hats_are_made_t.jpg
Stetson has made some of the best and most desirable hats since the 1800s. Their cowboy hats are beloved, though some can cost up to $5000. Business Insider provides a look at Stetson hat factory to see what makes these hats so special. One big difference is that the produce their own felt in-house.
The Awesomer