#laravel #php #tips #json
Laravel Tip💡: Assert JSON Fragments
When testing APIs, we often need to check if the response contains a specific key with the expected data. Laravel ships with the
@webdev_trends
Laravel Tip💡: Assert JSON Fragments
When testing APIs, we often need to check if the response contains a specific key with the expected data. Laravel ships with the
assertJsonFragment to do exactly that 🚀@webdev_trends
#js #JavaScript #frontend #webdev
You don't need a library to format date and time in JavaScript. Let's see how we can do it with the Intl Date Time Format object.
https://www.youtube.com/watch?v=xZKZsRfL9Vg
@webdev_trends
You don't need a library to format date and time in JavaScript. Let's see how we can do it with the Intl Date Time Format object.
https://www.youtube.com/watch?v=xZKZsRfL9Vg
@webdev_trends
YouTube
NO LIBRARIES REQUIRED: Format Date Time in JavaScript Tutorial
You don't need a library to format date and time in JavaScript. Let's see how we can do it with the Intl Date Time Format object.
For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat…
For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat…
#js #JavaScript #webdev
Understanding the Console Object in JavaScript.
The
👉 Read article 👈
@webdev_trends
Understanding the Console Object in JavaScript.
The
console object in JavaScript is a powerful tool for debugging and logging. It offers a variety of methods that go beyond simple logging, providing developers with a comprehensive toolkit for monitoring, analyzing, and debugging their code. This article explores all 25 methods provided by the console object, detailing their usage and applications.👉 Read article 👈
@webdev_trends
#js #JavaScript #frontend #webdev
The element
👉 Watch video 👈
@webdev_trends
The element
classList property lets you manage the list of classes on an HTML element. You're able to add, remove, toggle and replace classes, as well as check for existence of one.👉 Watch video 👈
@webdev_trends
YouTube
JavaScript Class List - All You Need to Know in 2 Mins
The element "classList" property lets you manage the list of classes on an HTML element. You're able to add, remove, toggle and replace classes, as well as check for existence of one.
For your reference, check this out:
https://developer.mozilla.org/en-…
For your reference, check this out:
https://developer.mozilla.org/en-…
#Laravel #tips #php #backend #webdev
Duplicate Pivot Rows? Laravel vs DB Solution
👉 Watch video 👈
@webdev_trends
Duplicate Pivot Rows? Laravel vs DB Solution
👉 Watch video 👈
@webdev_trends
YouTube
Duplicate Pivot Rows? Laravel vs DB Solution
One lesson from my refreshed course "Structuring Databases in Laravel 11".
Full course: https://laraveldaily.com/course/structuring-databases-laravel?mtm_campaign=db-structure-youtube-pivot
- - - - -
Support the channel by checking out my products:
- My…
Full course: https://laraveldaily.com/course/structuring-databases-laravel?mtm_campaign=db-structure-youtube-pivot
- - - - -
Support the channel by checking out my products:
- My…
#js #JavaScript #frontend #backend #webdev
Let's have a look at some JavaScript console methods that will improve your experience as a skilled web developer
👉 Watch video 👈
@webdev_trends
Let's have a look at some JavaScript console methods that will improve your experience as a skilled web developer
👉 Watch video 👈
@webdev_trends
YouTube
5 JavaScript Console Methods Every Developer Should Know
Let's have a look at some JavaScript console methods that will improve your experience as a skilled web developer 😎
Chapters:
0:00 Intro
0:06 Dir
1:29 Group
3:35 Table
5:08 Count
6:32 Time
8:16 Outro
For your reference, check this out:
https://develope…
Chapters:
0:00 Intro
0:06 Dir
1:29 Group
3:35 Table
5:08 Count
6:32 Time
8:16 Outro
For your reference, check this out:
https://develope…
#js #JavaScript #frontend #webdev
The array "flat map" method in JavaScript lets you perform a transformation on an array (map), and then flatten it out. Useful for merging data from API endpoints or other forms of general aggregation into a list.
👉 Watch video 👈
@webdev_trends
The array "flat map" method in JavaScript lets you perform a transformation on an array (map), and then flatten it out. Useful for merging data from API endpoints or other forms of general aggregation into a list.
👉 Watch video 👈
@webdev_trends
YouTube
This Method Isn't Used Enough... JavaScript Array Flat Map (In 2 Mins)
The array "flat map" method in JavaScript lets you perform a transformation on an array (map), and then flatten it out. Useful for merging data from API endpoints or other forms of general aggregation into a list.
For your reference, check this out:
htt…
For your reference, check this out:
htt…
#Laravel #php #backend #webdev
Laravel DB: Query BelongsTo 2-Levels Up - Direct Column?
👉 Watch video 👈
@webdev_trends
Laravel DB: Query BelongsTo 2-Levels Up - Direct Column?
👉 Watch video 👈
@webdev_trends
YouTube
Laravel DB: Query BelongsTo 2-Levels Up - Direct Column?
A free lesson from my course "Structuring Databases in Laravel 11".
Full course: https://laraveldaily.com/course/structuring-databases-laravel
Other links mentioned in the video:
- My course "Filament 3 From Scratch: Practical Course" https://laravelda…
Full course: https://laraveldaily.com/course/structuring-databases-laravel
Other links mentioned in the video:
- My course "Filament 3 From Scratch: Practical Course" https://laravelda…
#js #JavaScript #frontend #webdev
The "boolean" function in JavaScript lets you convert any value into either "true" or "false". This can be useful when dealing with TypeScript, outputting JSON, or using it with the "filter" method.
👉 Watch video 👈
@webdev_trends
The "boolean" function in JavaScript lets you convert any value into either "true" or "false". This can be useful when dealing with TypeScript, outputting JSON, or using it with the "filter" method.
👉 Watch video 👈
@webdev_trends
#css #frontend #webdev
Grid is awesome, and there are some neat tricks that you can do with it that I don’t see enough people taking advantage of, like overlapping named grid lines, using position absolute with grid, and animating template-rows and template-columns.
👉 Watch video 👈
@webdev_trends
Grid is awesome, and there are some neat tricks that you can do with it that I don’t see enough people taking advantage of, like overlapping named grid lines, using position absolute with grid, and animating template-rows and template-columns.
👉 Watch video 👈
@webdev_trends
YouTube
3 underused CSS Grid features
Looking to step up your CSS? I have both free and premium courses 👉 https://www.kevinpowell.co/courses/
Grid is awesome, and there are some neat tricks that you can do with it that I don’t see enough people taking advantage of, like overlapping named grid…
Grid is awesome, and there are some neat tricks that you can do with it that I don’t see enough people taking advantage of, like overlapping named grid…
#js #JavaScript #webcomponent #frontend #webdev
Can I add state-based UI to a Web Component?
👉 Watch video 👈
@webdev_trends
Can I add state-based UI to a Web Component?
👉 Watch video 👈
@webdev_trends
YouTube
Can I add state-based UI to a Web Component?
Source code: https://gist.github.com/cferdinandi/3dc2826f88dd5195a113d79e399ffc91
Work on fun projects like this at the Lean Web Club. Sign up for free at https://leanwebclub.com.
Hate the complexity of modern front‑end web development? I teach people a…
Work on fun projects like this at the Lean Web Club. Sign up for free at https://leanwebclub.com.
Hate the complexity of modern front‑end web development? I teach people a…
#Laravel #php #tips #php #backend #webdev
DB Column Names: Tips for Suffix/Prefix
👉 Watch video 👈
@webdev_trends
DB Column Names: Tips for Suffix/Prefix
👉 Watch video 👈
@webdev_trends
YouTube
DB Column Names: Tips for Suffix/Prefix
Another tip coming from my latest course on structuring DBs in Laravel.
Links mentioned in the video:
- Original tweet: https://x.com/PovilasKorop/status/1816016150750195810
- LinkedIn post: https://www.linkedin.com/feed/update/urn:li:activity:722179183…
Links mentioned in the video:
- Original tweet: https://x.com/PovilasKorop/status/1816016150750195810
- LinkedIn post: https://www.linkedin.com/feed/update/urn:li:activity:722179183…
#laravel #php #tips #webdev
Check out this awesome article on clean code tips!📝
Learn how to use scopes to get rid of those long code blocks and keep your code neat!
👉 Watch video
@webdev_trends
Check out this awesome article on clean code tips!📝
Learn how to use scopes to get rid of those long code blocks and keep your code neat!
👉 Watch video
@webdev_trends
YouTube
Laravel clean code tip : use scopes to git rid of long code blocks
#beginners #docker #devops #tutorial
1. Running our First Docker Image
In the recent years, technological improvements across all industries have dramatically increased the rate at which software products are demanded and consumed. Trends like agile development and continuous integration also increased demand. As a result, many organizations have opted to switch to cloud infrastructure.
👉 Read article
@webdev_trends
1. Running our First Docker Image
In the recent years, technological improvements across all industries have dramatically increased the rate at which software products are demanded and consumed. Trends like agile development and continuous integration also increased demand. As a result, many organizations have opted to switch to cloud infrastructure.
👉 Read article
@webdev_trends
👍1
#beginners #docker #devops #tutorial
2. Basic Container Lifecycle Management
Throughout your container journey, you will be pulling, starting, stopping, and removing containers from your local environment quite frequently. Prior to deploying a container in a production environment, it is critical to run the container locally to understand how it should work. This includes starting, stopping and restarting containers, getting details about how the container is running, and, of course accessing verbose logs to view critical details about the applications running inside the container.
👉 Read article
@webdev_trends
2. Basic Container Lifecycle Management
Throughout your container journey, you will be pulling, starting, stopping, and removing containers from your local environment quite frequently. Prior to deploying a container in a production environment, it is critical to run the container locally to understand how it should work. This includes starting, stopping and restarting containers, getting details about how the container is running, and, of course accessing verbose logs to view critical details about the applications running inside the container.
👉 Read article
@webdev_trends
👍1
#beginners #docker #devops #tutorial
3. Getting Started with
In the previous posts, we discussed how you can run your first Docker container by pulling pre-built Docker images from Docker Hub. While it is useful to get pre-built Docker images from Docker Hub, we can't only rely on them. This is important for running our applications on Docker by installing new packages and customizing the settings of the pre-built Docker images.
This will be done using a text file called a
👉 Read article
@webdev_trends
3. Getting Started with
Dockerfiles In the previous posts, we discussed how you can run your first Docker container by pulling pre-built Docker images from Docker Hub. While it is useful to get pre-built Docker images from Docker Hub, we can't only rely on them. This is important for running our applications on Docker by installing new packages and customizing the settings of the pre-built Docker images.
This will be done using a text file called a
Dockerfile. This file consists of commands that can be executed by Docker to create a docker image. Docker images are created from a Dockerfile using the docker build or docker image build command.👉 Read article
@webdev_trends
👍1
#beginners #docker #devops #tutorial
4. Attaching To Containers Using the
In the previous post, we discussed how to use the
However, Docker containers run as per the life of the primary process running inside the container. When this process exits, the container will stop. If you need to access the primary process inside the container directly (as opposed to a secondary shell session), then you can use the
👉 Read article
@webdev_trends
4. Attaching To Containers Using the
Attach CommandIn the previous post, we discussed how to use the
docker exec command to spin up a new shell session in a running container instance. The docker exec command is very useful for quickly gaining access to a containerized instance for debugging, troubleshooting, and understanding the context the container is running in.However, Docker containers run as per the life of the primary process running inside the container. When this process exits, the container will stop. If you need to access the primary process inside the container directly (as opposed to a secondary shell session), then you can use the
docker attach command to attach to the primary running process inside the container.👉 Read article
@webdev_trends
👍1
#beginners #docker #devops #tutorial
5. Building Docker Images
In the previous post we discussed how to create a
A Docker image is like a compiled file. It's built in layers, starting with the base layer that contains the fundamental setup. This is usually the layer we use the
👉 Read article
@webdev_trends
5. Building Docker Images
In the previous post we discussed how to create a
Dockerfile. The next step of the process is to build a Docker image using the Dockerfile.A Docker image is like a compiled file. It's built in layers, starting with the base layer that contains the fundamental setup. This is usually the layer we use the
FROM directive. Each subsequent layer adds on top of the previous one, making small adjustments or additions. These layers are stacked on top of another, and each layer builds up the changes made in the layer before it.👉 Read article
@webdev_trends
👍1
#beginners #docker #devops #tutorial
6. Advanced
In this post, we are going to discuss more advanced
For example, we can use the
👉 Read article
@webdev_trends
6. Advanced
Dockerfile Directives In this post, we are going to discuss more advanced
Dockerfile directives. These directives can be used to create more advanced Docker images.For example, we can use the
VOLUME directive to bind the filesystem of the host machine to a Docker container. This will allow us to save the data generated and used by the Docker container to our local machine. 👉 Read article
@webdev_trends
👍1