teleren/devto huggingface dataset:
Laravel 11 Create, Run and Rollback Migration
Tags: laravel, migration, beginners, webdev
Published: 2024-04-29 05:30:00

In this guide, we'll see how to create, run, and roll back migration in laravel 11. 

Migrations are like version control for your database. Also, see run specific migration in laravel 11 and roll back specific migration in laravel 11.

A migration class contains two methods: up and down. The up method is used to add new tables, columns, or indexes to your database, while the down method should reverse the operations performed by the up method.

> Create Migration

First, we'll create a migration using the following command.

```
php artisan make:migration create_blogs_table
```

After running the above command, you will see a new file in the database/migration folder.

database/migrations/2024_04_06_144031_create_blogs_table.php

```
<?php
   
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
    
return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('blogs', function (Blueprint $table) {
            $table->id();
            $table->string('title');
            $table->text('body');
            $table->boolean('is_published')->default(0);
            $table->timestamps();
        });
    }
    
    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('blogs');
    }
};
``` 

> Run Migration

Then, we'll migrate the migration into the database using the following command.

```
php artisan migrate
```  

> Run Specific Migration

Run a specific migration using the following command.

```
php artisan migrate --path=/database/migrations/2024_04_06_144031_create_blogs_table.php
``` 

> Migration Rollback

Rollback a migration using the following command:

```
php artisan migrate:rollback
``` 

> Rollback Specific Migration

Roll back a specific migration using the following command.

```
php artisan migrate:rollback --path=database/migrations/2024_04_06_144031_create_blogs_table.php
``` 

> Reset Migration

Reset migration will roll back all the application's migrations.

```
php artisan migrate:reset
``` 

> Column-modifiers

In addition to the column types listed above, there are several column "modifiers" you may use when adding a column to a database table. 

```
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
 
Schema::table('users', function (Blueprint $table) {
    $table->string('email')->nullable();
});
``` 

> Dropping Columns

To drop a column, you may use the dropColumn method on the schema builder:

```
Schema::table('users', function (Blueprint $table) {
    $table->dropColumn('votes');
});

Schema::table('users', function (Blueprint $table) {
    $table->dropColumn(['votes', 'avatar', 'location']);
});
``` 

---

You might also like:

**[Read Also: How to Add Foreign Key in Laravel 10 Migration](https://techsolutionstuff.com/post/how-to-add-foreign-key-in-laravel-10-migration)**
Fabric Facades Manufacturers, Suppliers | Best Fabric Facades - Skyshade
Published: 2024-04-29 05:21:33

**FABRIC FACADES – Light Weight, Aesthetic & Functional
**
Facades are signature to building. they provide identity to building .Many materials and forms are used to create this identity. High tensile strength , long lasting fabrics which can take three dimensional form and are very light weight, are the new age material  for building facades provided by Skyshade,[ best fabric facades manufacturers in Hyderabad.](https://www.skyshade.in/basement-lighting/) The building envelope  can be aesthetically designed with these fabric facade systems . They are essentially used as second skin over building.

Value of fabric facade :

  Signature form
  Solar protection
   Long life
Why Use Fabric Facade?
Reduces building cooling energy costs & glare from glass.
Reduces high CAPEX on glass ( use of simple clear glass . no need for high end coated glasses )
Reduces CAPEX of interior blinds ( not required) ,
Maintains visual transparency.
Flexible and can realize 3D forms.
Light weight .
Printable .
As media facade with personalized print +Lighting.
Fabric Choices
PVC perforated fabrics
PTFE perforated fabrics.
Openness factor, 10%-50% .
Light transmission , 12-50 %.
Gimli Tailwind is now available for Firefox!
Tags: webdev, tailwindcss, tooling
Published: 2024-04-29 05:21:20

Gimli Tailwind is the most popular DevTools extension for Tailwind CSS developers, and it's now available for Firefox :)

[Get it here](https://addons.mozilla.org/sv-SE/firefox/addon/gimli-tailwind/)

[Introduction to Gimli Tailwind (Chrome version, but very similar)](https://www.youtube.com/watch?v=JRRc9fC3bSE)

[Get the Chrome version](https://chromewebstore.google.com/detail/gimli-tailwind/fojckembkmaoehhmkiomebhkcengcljl)
Basement Lighting | Natural Lighting Into Basements
Published: 2024-04-29 05:19:26




Basement Lighting
In the new age of urban India where real estate is turning pricier, leading to vertical development of buildings with high rises in residential and commercial sectors. This phenomenon is creating more number of basements for a single vertical building to accommodate the resident’s vehicle parking requirements. This is resulting in increased usage of electrical lighting all throughout the day for the basement lighting with rising energy cost leading to higher monthly maintenance from the occupants of the vertical high rise buildings.  

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9g00ju6ykkk0yzy7608p.png)

To address the issue, Skyshade has come up with the best basement lighting solution with its proprietary technology Lightpipe® that works in a seamless manner. The Lightpipe® or daylighting system for basements is designed for the building in such a manner, the true natural sunlight is harvested during the day time and transmitted  the required level of lighting into the interior space covering every nook and corner of the basements.


[](https://www.youtube.com/watch?v=WZdLPkEnSnk)

**Natural Light For Basement And Automation
**
Basement Lighting – Skyshade with its systems, technologies and architecture, integrates Lightpipe® with LED lights and lighting controllers that enables to switch on or off automatically basis the variations of daylight or natural light measuring the required lux level. Thus, it ultimately saves monthly energy costs.  

As the image shows, the sensors work in a seamless manner with a structural integration system that switches electrical lights only for the specific area occupied.

Thus, Skyshade’s [basement natural lighting system](https://www.skyshade.in/basement-lighting/) solves the major problem of high energy cost of the high rise building owner or a bungalow or commercial establishment. 

Skyshade’s integrated Basement Lighting Solutions are in 3 parts 

Daylighting or Natural Light Harvesting
LED lighting backup when there is no daylight
Daylight and Occupancy based controls for Light on Demand requirement
Revitalize Your Home with Steam Carpet Cleaning
Published: 2024-04-29 05:18:21


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w1jr78ssskabc0g7to2r.png)

Is your carpet looking tired, stained, or just not as fresh as it used to be? If so, it may be time to consider steam carpet cleaning—a highly effective and efficient method for restoring the beauty and cleanliness of your carpets. In Columbus, GA, where the climate can sometimes be unforgiving, keeping your carpets clean and well-maintained is essential for a healthy and inviting home environment. Let's explore how steam carpet cleaning can revitalize your home and why it's the preferred choice for homeowners in Columbus, GA. You can also visit affordablecarpetcleaningauburn.com for more details.

**Deep Cleaning Power **

Steam carpet cleaning utilizes hot water extraction to penetrate deep into the carpet fibers, effectively loosening and lifting dirt, grime, and allergens trapped within. Unlike surface cleaning methods that only address the top layer of carpeting, steam cleaning provides a thorough and comprehensive clean, leaving your carpets looking and feeling fresh from the bottom up.

**All-Natural and Eco-Friendly**

Concerned about harsh chemicals and toxins in traditional cleaning products? Steam carpet cleaning offers a safe and eco-friendly alternative. By harnessing the power of high-temperature steam and specialized cleaning solutions, steam cleaning effectively eliminates dirt and stains without the need for harmful chemicals, making it a healthier choice for your family and pets.

**Effective Stain Removal** 

Whether it's spills, pet accidents, or everyday wear and tear, stains are an inevitable part of owning carpets. Fortunately, steam carpet cleaning is highly effective at removing even the toughest stains, including those stubborn ones that seem impossible to get rid of. With professional steam cleaning services in Columbus, GA, you can say goodbye to unsightly stains and hello to beautifully refreshed carpets.

**Elimination of Allergens and Odors** 

Carpets can harbor a variety of allergens, dust mites, and unpleasant odors that can negatively impact indoor air quality and exacerbate respiratory issues. Steam carpet cleaning not only removes visible dirt and stains but also eliminates hidden allergens and odors, leaving your home healthier and more comfortable for you and your family.

[READ MORE HERE..](https://gitea.com/carpetcleaning/Affordable-Carpet-Cleaning/wiki/Steam-Carpet-Cleaning-Columbus%2C-GA)
Glam Up My Markup: Earth Day - Frontend Challenge Submission
Tags: devchallenge, frontendchallenge, css, javascript
Published: 2024-04-29 05:16:32

_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/devteam/join-us-for-the-next-frontend-challenge-earth-day-edition-52e4), Glam Up My Markup: Earth Day Celebration Landing Page_

## What I Built

My landing page submission spreads out the content from the source HTML to provide a smooth scrolling experience. Each section of content is then easier to focus on. The landing page has a dark theme to conserve energy and features an animated earth and links to resources. I strictly followed the prompt and only added to the source HTML code by using JavaScript.  

## Demo

Here's the [DEMO](https://cobykalter.github.io/earth-day-landing-page/).

Here’s the [CODE](https://github.com/CobyKalter/earth-day-landing-page).

## Journey
I wanted to use this challenge to practice my CSS and JavaScript skills and learn new things. I focused on using minimal design, smooth scrolling, and animations. I hoped to learn some CSS animation in the process which I did. I had a lot of design inspiration from the [GitHub Universe](https://githubuniverse.com/) site. There were a few more ideas I had that I would have liked to try out, but some items took longer than expected. Ultimately, I am happy with my end product and plan to keep iterating on this landing page in the future.
Tensile Structures Manufacturers and Suppliers in India | Skyshade
Published: 2024-04-29 05:15:26

ensile structures require careful design, engineering, and construction using high-quality materials. Skyshade’s approach to these structures has earned a reputation as [the best tensile structure manufacturer in Hyderabad, India.](https://www.skyshade.in/lightpipe/) Tensile structures are not just projects to be completed, but rather aesthetic structures that are meant to impress and endure.

Designing Tensile structure is an Art & Science. Art is the creative side of visualization of form and functionality of the structure. Science is the engineering analysis, Optimization of all elements, Manufacturing all elements to the standards and procedurally erecting all elements of structure to achieve equilibrium.

Skyshade’s top-quality tensile membrane structures, fabric structures, and canopies are built to withstand any weather condition, ensuring long-lasting durability. Choose Skyshade for reliable and superior products that will exceed your expectations.

How Well A Tensile Structure Roof  Is Done Is Seen In
A well structured tensile roof is seen in

Aesthetics.
Quality of fabric connection systems.
Membrane quality.
Optimized steel structure.
How it ages over a period of time.
Unlocking Social Media Success: The Power of Caption AI in Crafting Captivating Content
Tags: socialmedia, webdev, ai, openai
Published: 2024-04-29 05:07:48


![Caption AI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qayr51bp1ghq3bnnondf.png)

In today's digital age, social media has become a powerful tool for individuals and businesses alike to connect, engage, and grow their online presence. One key element that can make or break a social media post is the caption accompanying it. Enter [Caption AI](https://captionai.blubuddy.io/), a revolutionary tool that takes the guesswork out of crafting compelling captions that resonate with your audience.

[Caption AI](https://captionai.blubuddy.io/) is not just any caption generator; it's your creative sidekick in the world of social media. With its ability to customize language, tone, and destination platform, [Caption AI](https://captionai.blubuddy.io/) ensures that your captions are not only accurate but also tailored to make a lasting impression. Say goodbye to the hassle of brainstorming hashtags and emojis - Caption AI has got you covered.

But why is [Caption AI](https://captionai.blubuddy.io/) the go-to choose for enhancing your social media game? It's simple - it understands your language and speaks it fluently. Quick, easy, and efficient, [Caption AI](https://captionai.blubuddy.io/) is your ticket to captions that grab attention and drive engagement. By utilizing this innovative tool, you can elevate your social media presence and stand out in a sea of content.

Crafting the perfect caption is an art form, and [Caption AI](https://captionai.blubuddy.io/) is here to help you master it. Whether you're aiming for a casual, professional, or fun tone, [Caption AI](https://captionai.blubuddy.io/) empowers you to create captions that resonate with your audience. From Facebook to Instagram, [Caption AI](https://captionai.blubuddy.io/) ensures that your captions are tailored to each platform's specific requirements, maximizing their impact.

In a world where attention spans are short and competition is fierce, the importance of a well-crafted caption cannot be overstated. Your captions are the gateway to your content, the first impression that can make or break a post. With [Caption AI](https://captionai.blubuddy.io/) by your side, you can confidently create captions that stop the scroll, spark interest, and drive engagement.

So, are you ready to take your social media game to the next level? [Caption AI](https://captionai.blubuddy.io/) is here to support you every step of the way. Upload, customize, and watch as the caption magic unfolds before your eyes. With [Caption AI](https://captionai.blubuddy.io/), crafting captivating captions has never been easier. Say goodbye to bland captions and hello to social media success with [Caption AI](https://captionai.blubuddy.io/) by your side.
Daylighting Light Pipes Manufacturers | Solar Pipes & Sun Tube Suppliers | Skyshade
Published: 2024-04-29 05:05:06

Lightpipe®

[Lightpipe® represents a groundbreaking advancement in daylight technology](https://www.skyshade.in/lightpipe/), efficiently channeling natural light into buildings and industrial structures during the day, potentially reducing energy costs by up to 80%.

Skyshade stands as India's sole manufacturer of Daylighting Lightpipes, producing solar pipes and sun tubes. The company has successfully completed daylighting projects ranging from small to large scales, utilizing its patented Lightpipe® product.

Skyshade also maintains a dedicated in-house Research & Development center focused on continually addressing new business requirements and enhancing product innovation to meet the varied needs of user buildings or industrial structures.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/92q85c705ogoc9ibq627.png)



**How Does Lightpipe® Work?
**
**Skyshade has developed an innovative product named Lightpipe®, which captures sunlight or natural light during the day using patented collectors and channels it into specific indoor areas of buildings or industrial structures through a pipe.

The sunlight collectors, both active and passive, gather sunlight continuously throughout the year.

The Lightpipe features a reflective system linked to the sunlight collector, which aids in transmitting the natural light or sunlight over extended distances. At the end of the light pipe, there is a light diffuser that evenly disperses the sunlight into the interior spaces.

With 18 years of experience, Skyshade offers its award-winning product, Light Pipes, designed for both commercial and industrial structures. These pipes effectively utilize natural daylight, leading to significant energy savings every day of the year.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxng4ttduism08ksrqst.png)


**Lightpipe® For Commercial Buildings
**
Most of the businesses are operated during the day with internal electrical lighting thereby inflating the monthly energy bills. Lightpipe from Skyshade is the alternative solution to replace the electrical lighting with the natural daylighting giving the interior with the same lux level and bring the savings of the energy levels combined with contributing towards reduced carbon emissions. 

Skyshade successfully installed Lightpipes (Solar Pipes) to various commercial buildings like,

Pharmaceuticals
Offices
Godowns
Temples
Public buildings
Stores
Green Houses
Airports
Railways, etc
Isolates in Flutter News 2024 #17 ʚїɞ
Tags: flutter, news, dart, discuss
Published: 2024-04-29 04:46:48

Hey Flutter enthusiasts!

Ever worry about missing key Flutter updates? Well, worry no more!
Starting 2024, I'm here to keep you informed with a weekly Monday report. Let's stay ahead in the world of Flutter!

## Table of Contents

 * [Mayor Flutter updates](#mayor-flutter-updates)
 * [New Flutter Videos](#new-flutter-videos)
 * [New Flutter Packages](#new-flutterpackages)
 * [New Dev Posts](#new-devposts)
 * [New Medium Posts](#new-mediumposts)

---

## Mayor Flutter updates:

> There are no mayor flutter updates this week!
-> Currently [Flutter Version Valentine’s-Day-adjacent 3.19](https://docs.flutter.dev/release/whats-new)

## New Flutter Videos:

> The [Flutter YouTube Channel](https://youtube.com/@flutterdev?si=RZyl1nLVnSt373Vu) did post new Videos:
{% embed https://www.youtube.com/watch?v=PPwJ75vqP_s %}


---

## New Flutter-Packages

{% embed https://pub.dev/packages/appflowy_editor_plugins %}

{% embed https://pub.dev/packages/strategic_logger %}

{% embed https://pub.dev/packages/flutter_logcat %}

{% embed https://pub.dev/packages/flutter_sanity_plus %}

{% embed https://pub.dev/packages/google_mlkit_document_scanner %}


---

### New Dev-Posts

{% embed https://dev.to/video-sdk/implement-screen-share-in-flutter-video-call-app-for-ios-46pg %}

{% embed https://dev.to/video-sdk/implement-chat-feature-in-flutter-video-call-app-1eem %}

{% embed https://dev.to/video-sdk/implement-screen-share-in-flutter-video-call-app-for-android-1eci %}

{% embed https://dev.to/runlinwang/effortlessly-implement-multi-terminal-adaptation-chat-apps-integration-using-flutter-chat-uikit-1b5 %}

{% embed https://dev.to/koukibadr/searchable-listview-3oo2 %}


---

### New Medium-Posts

{% embed https://medium.com/@selim-yay/random-class-t%C3%BCrk%C3%A7e-anlat%C4%B1m-bf65f0d1268e %}

{% embed https://medium.com/@james1117pig/flutter-%E7%94%A8getx%E4%B8%80%E6%AC%A1%E5%AE%8C%E6%88%90app%E5%9F%BA%E6%9C%AC%E6%9E%B6%E6%A7%8B-cf3d54a5d2f9 %}

{% embed https://medium.com/@rathinpandyaoffshore/partnering-for-success-choosing-the-right-co-founder-for-your-startup-bf7ba0bce58b %}

{% embed https://medium.com/@emabyte/slowly-running-microsofts-phi-3-mini-on-iphone-11-43b430dca7fc %}

{% embed https://medium.com/@onurkaraldev/flutter-firebase-the-essential-integration-guide-9c30fbb42cfb %}


---

Last Flutter News: [Flutter News 2024 #16 ʚїɞ](https://dev.to/lucianojung/series/26008)
_Did I miss any recent updates? Feel free to share any important news I might have overlooked!_
AIGeniusWriter: Streamline E-commerce with AI
Tags: aigeniuswriter, aiwriter, aigenius, ai
Published: 2024-04-29 04:42:28

Hey Product Hunters! 🌟 I’m excited to introduce you to AIGeniusWriter today. As a tool developed from real e-commerce challenges, AIGeniusWriter is here to help you tackle the tedious task of content generation. Whether you're dealing with descriptions, FAQs, or customer reviews, our AI tools are designed to simplify your workflow and enhance the quality of your content.

Here’s what sets AIGeniusWriter apart:

It turns the time-consuming task of content writing into a quick, enjoyable process.
It adapts to your brand's tone and style, ensuring the content feels personalized and authentic.
It helps you maintain a high standard of content which is crucial for attracting and retaining customers.

I’m here all day to dive into discussions about how AIGeniusWriter can benefit your business and answer any questions you might have. Let’s explore how AI can revolutionize your content efforts. For more information and to start your free trial, visit us at https://aigeniuswriter.com/?utm_source=dev
How to disable chart interaction
Published: 2024-04-29 04:25:56

## **Title**

How to disable chart interaction

## **Description**

How can I disable the interaction events of the chart and just use it as an image when using the chart?

![](https://bytedance.larkoffice.com/space/api/box/stream/download/asynccode/?code=ODcxMmExOWZiZDlkNmExZmMwMGY1NThlMTc5Yzk2NDFfcXZ1bXExV1FiSnVuY3NSdmpXYlpNN3FQRDc5WFAxZzZfVG9rZW46WlVjNWJNZWVZb25DVUd4TU1tVmNac2U4bmFnXzE3MTQzNjQ3MjI6MTcxNDM2ODMyMl9WNA)

## **Solution**

In VChart, you can directly pass in `disableTriggerEvent: true` to disable interaction.

## **Code Example**

```TypeScript
const spec = {
  type: 'bar',
  data: [
    {
      id: 'barData',
      values: [
        { month: 'Monday', sales: 22 },
        { month: 'Tuesday', sales: 13 },
        { month: 'Wednesday', sales: 25 },
        { month: 'Thursday', sales: 29 },
        { month: 'Friday', sales: 38 }
      ]
    }
  ],
  xField: 'month',
  yField: 'sales'
};

const vchart = new VChart(spec, { dom: CONTAINER_ID, disableTriggerEvent: true });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
```

## **Result**

![](https://bytedance.larkoffice.com/space/api/box/stream/download/asynccode/?code=NTM1MDhmMDQ4NTE5YzlmODk5YjcwZTVkNWViNTUxMTlfR080aEljOElVVUtLYjhkY2xsQlRZa2pRTFNPQnFpVUVfVG9rZW46TDAzUmJkOGJYb1BjTzl4Mmg0VGN3b08wbkNnXzE3MTQzNjQ3MjI6MTcxNDM2ODMyMl9WNA)

Demo: https://codesandbox.io/p/sandbox/vchart-disabletriggerevent-psxswy?file=%2Fsrc%2Findex.js%3A20%2C46

## **Related Documents**

Demo：https://codesandbox.io/p/sandbox/vchart-disabletriggerevent-psxswy?file=%2Fsrc%2Findex.js%3A20%2C46

Tutorial：

- Initialize VChart: [VisActor](https://visactor.io/vchart/api/API/vchart)

Github: [GitHub - VisActor/VChart: VChart, more than just a cross-platform charting library, but also an expressive data storyteller.](https://github.com/VisActor/VChart/)