<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>datatables Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/datatables/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/datatables/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 21 Feb 2026 07:13:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>GridView: A Complete Guide to Data Display and Management in Applications</title>
		<link>https://www.scmgalaxy.com/tutorials/gridview-a-complete-guide-to-data-display-and-management-in-applications/</link>
					<comments>https://www.scmgalaxy.com/tutorials/gridview-a-complete-guide-to-data-display-and-management-in-applications/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Mon, 09 Jun 2025 12:51:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASPNet]]></category>
		<category><![CDATA[DataDisplay]]></category>
		<category><![CDATA[datatables]]></category>
		<category><![CDATA[GridView]]></category>
		<category><![CDATA[GridViewArchitecture]]></category>
		<category><![CDATA[MobileAppDevelopment]]></category>
		<category><![CDATA[UIComponents]]></category>
		<category><![CDATA[UserInterface]]></category>
		<category><![CDATA[WebDesign]]></category>
		<category><![CDATA[WebDevelopment]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12601</guid>

					<description><![CDATA[<p>Introduction A GridView is a versatile UI component used to display, organize, and manage large sets of data within a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/gridview-a-complete-guide-to-data-display-and-management-in-applications/">GridView: A Complete Guide to Data Display and Management in Applications</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="506" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-55-1024x506.png" alt="" class="wp-image-12608" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-55-1024x506.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-55-300x148.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-55-768x380.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-55.png 1400w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Introduction</strong></h2>



<p class="wp-block-paragraph">A <strong>GridView</strong> is a versatile <strong>UI component</strong> used to display, organize, and manage large sets of data within a <strong>grid structure</strong>. It provides a clear, tabular way to present data to users, allowing for easy navigation, manipulation, and editing of individual data points. Whether you&#8217;re working on a <strong>web application</strong>, <strong>mobile app</strong>, or <strong>desktop software</strong>, the GridView is a common tool used to display data in an organized and user-friendly manner.</p>



<p class="wp-block-paragraph">In web development, GridView components are integral to creating <strong>data-heavy</strong> applications where users need to interact with large datasets. It is most commonly seen in <strong>data tables</strong>, where rows and columns represent various data attributes. With features like <strong>pagination</strong>, <strong>sorting</strong>, <strong>filtering</strong>, and <strong>inline editing</strong>, GridView is a powerful tool for developers building data-driven user interfaces.</p>



<p class="wp-block-paragraph">This guide will delve into <strong>what GridView is</strong>, its <strong>major use cases</strong>, <strong>how it works</strong>, its <strong>architecture</strong>, and the <strong>basic workflow</strong> of integrating GridView into applications. We&#8217;ll also provide a <strong>step-by-step guide</strong> to getting started with GridView, helping you implement this powerful component into your development projects.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>What is GridView?</strong></h2>



<p class="wp-block-paragraph">A <strong>GridView</strong> is a user interface (UI) component used to present data in a <strong>tabular format</strong>. It organizes data into <strong>rows</strong> and <strong>columns</strong>, which makes it easy to display structured data such as <strong>records</strong>, <strong>tables</strong>, and <strong>lists</strong>. GridViews are interactive elements that allow users to not only view the data but also perform actions like sorting, searching, filtering, and even editing.</p>



<h3 class="wp-block-heading"><strong>Key Features of GridView:</strong></h3>



<ol class="wp-block-list">
<li><strong>Dynamic Data Binding</strong>: GridViews can bind to data from various sources such as <strong>databases</strong>, <strong>arrays</strong>, or <strong>JSON objects</strong>, allowing them to dynamically update as the data changes.</li>



<li><strong>Pagination</strong>: For large datasets, GridViews support <strong>pagination</strong>, displaying a set number of records per page to improve performance and readability.</li>



<li><strong>Sorting</strong>: Users can sort the data by columns, making it easier to navigate through large amounts of information.</li>



<li><strong>Filtering</strong>: GridViews offer filtering options to refine the displayed data based on user input, such as searching for specific keywords.</li>



<li><strong>Inline Editing</strong>: Some GridViews support <strong>inline editing</strong>, allowing users to modify data directly within the grid without needing to navigate to another page or dialog.</li>



<li><strong>Customizable Design</strong>: Developers can style the GridView, adjusting fonts, colors, and borders to suit the application’s theme.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Major Use Cases of GridView</strong></h2>



<p class="wp-block-paragraph">GridViews are used across various applications to display structured data in a clean, organized manner. Below are some <strong>major use cases</strong> where GridViews are commonly employed:</p>



<h3 class="wp-block-heading"><strong>1. Data Management Applications</strong></h3>



<p class="wp-block-paragraph">GridViews are often used in <strong>data management systems</strong> to present large datasets that need to be manipulated or viewed in a structured manner. Examples include applications for <strong>inventory management</strong>, <strong>customer relationship management (CRM)</strong>, and <strong>order tracking</strong>.</p>



<ul class="wp-block-list">
<li><strong>Use Case Example</strong>: In a <strong>CRM system</strong>, GridViews are used to display customer data, such as names, contact information, and order history, while also allowing for sorting and searching.</li>
</ul>



<h3 class="wp-block-heading"><strong>2. Business Intelligence and Reporting</strong></h3>



<p class="wp-block-paragraph">GridViews are extensively used in <strong>business intelligence</strong> tools, where large volumes of data need to be presented in a way that allows users to analyze and make decisions. They enable the user to view financial data, sales performance, or project reports, with features like sorting, filtering, and pagination to make large datasets manageable.</p>



<ul class="wp-block-list">
<li><strong>Use Case Example</strong>: A <strong>financial reporting tool</strong> that uses GridView to display sales reports by region, product category, and month, with interactive filtering options to view specific data sets.</li>
</ul>



<h3 class="wp-block-heading"><strong>3. E-Commerce Platforms</strong></h3>



<p class="wp-block-paragraph">GridViews are used on <strong>e-commerce websites</strong> to display products in categories such as <strong>pricing</strong>, <strong>availability</strong>, <strong>ratings</strong>, etc. They often include filtering options and pagination to help customers find products based on specific criteria.</p>



<ul class="wp-block-list">
<li><strong>Use Case Example</strong>: A <strong>fashion store</strong> using GridView to display <strong>clothing items</strong>, allowing users to filter by category, size, color, and price range.</li>
</ul>



<h3 class="wp-block-heading"><strong>4. Data Entry and CRUD Applications</strong></h3>



<p class="wp-block-paragraph">GridViews are also used in <strong>data entry forms</strong> and applications that need to perform <strong>CRUD</strong> (Create, Read, Update, Delete) operations on data. GridViews can allow users to easily add, edit, and delete records within the grid itself.</p>



<ul class="wp-block-list">
<li><strong>Use Case Example</strong>: An <strong>employee database application</strong> that allows administrators to view, add, edit, and delete employee records directly from a GridView.</li>
</ul>



<h3 class="wp-block-heading"><strong>5. Educational Platforms</strong></h3>



<p class="wp-block-paragraph">GridViews are commonly used in <strong>e-learning platforms</strong> to display class schedules, student grades, or attendance records in an easy-to-read tabular format. They can be used to track student progress, providing real-time updates and interactions.</p>



<ul class="wp-block-list">
<li><strong>Use Case Example</strong>: A <strong>school management system</strong> that uses GridView to present <strong>student grades</strong> and <strong>assignments</strong> in a table format, enabling teachers to edit records and assign new grades directly within the grid.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>How GridView Works: Architecture</strong></h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="538" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-56-1024x538.png" alt="" class="wp-image-12610" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-56-1024x538.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-56-300x158.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-56-768x403.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-56.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The architecture of a <strong>GridView</strong> component depends on the platform you&#8217;re using (e.g., <strong>web-based</strong>, <strong>mobile</strong>, or <strong>desktop</strong>). However, the core principles of GridView operation remain consistent. Below is an overview of how a GridView works in terms of its architecture:</p>



<h3 class="wp-block-heading"><strong>1. Data Binding</strong></h3>



<p class="wp-block-paragraph">GridViews work by binding to a <strong>data source</strong>, which is typically a list or collection of objects, such as:</p>



<ul class="wp-block-list">
<li><strong>Arrays</strong> or <strong>Lists</strong> (e.g., JavaScript arrays, Python lists)</li>



<li><strong>Database tables</strong> (via <strong>SQL</strong> or <strong>NoSQL</strong> queries)</li>



<li><strong>JSON</strong> or <strong>XML</strong> objects</li>
</ul>



<p class="wp-block-paragraph">The data source defines the structure of the GridView, with each row representing an item in the data collection and each column representing an attribute of that item.</p>



<h3 class="wp-block-heading"><strong>2. Columns and Rows</strong></h3>



<p class="wp-block-paragraph">GridViews organize data into a <strong>two-dimensional structure</strong> where:</p>



<ul class="wp-block-list">
<li><strong>Rows</strong> represent individual records or items.</li>



<li><strong>Columns</strong> represent the attributes or fields of each record (e.g., Name, Age, Address, etc.).</li>
</ul>



<h3 class="wp-block-heading"><strong>3. Sorting and Filtering</strong></h3>



<p class="wp-block-paragraph">Sorting and filtering are essential components of GridViews:</p>



<ul class="wp-block-list">
<li><strong>Sorting</strong> allows users to reorder rows based on a selected column, either in <strong>ascending</strong> or <strong>descending</strong> order.</li>



<li><strong>Filtering</strong> allows users to specify criteria for which rows are displayed, helping them focus on a subset of the data (e.g., by name, date, or category).</li>
</ul>



<h3 class="wp-block-heading"><strong>4. Pagination</strong></h3>



<p class="wp-block-paragraph">For larger datasets, GridViews provide <strong>pagination</strong>, breaking the data into smaller, more manageable pages. This reduces load time and improves user experience by displaying a limited number of records at a time.</p>



<h3 class="wp-block-heading"><strong>5. Event Handling</strong></h3>



<p class="wp-block-paragraph">GridViews provide mechanisms to handle user interactions, such as:</p>



<ul class="wp-block-list">
<li><strong>Row Selection</strong>: Users can select rows for further actions (e.g., editing or deleting).</li>



<li><strong>Cell Editing</strong>: Some GridViews allow users to click on a cell and edit its contents inline.</li>



<li><strong>Button Actions</strong>: Users can perform actions on buttons placed within the grid, such as adding a new row or submitting selected data.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Basic Workflow of GridView</strong></h2>



<p class="wp-block-paragraph">The workflow of a GridView typically involves several steps, from <strong>data binding</strong> to <strong>user interaction</strong>. Here’s how the process works:</p>



<ol class="wp-block-list">
<li><strong>Data Source Setup</strong>: The first step in working with a GridView is to specify the <strong>data source</strong>—this could be an array, a database, or a JSON file.</li>



<li><strong>GridView Creation</strong>: The GridView component is created and configured to display data in a grid format. Columns are defined based on the attributes of the data objects.</li>



<li><strong>Binding Data</strong>: The data is <strong>bound</strong> to the GridView. Each item in the data source corresponds to a row in the GridView, and each attribute corresponds to a column.</li>



<li><strong>Displaying Data</strong>: The data is displayed in the GridView, and the user can interact with it, such as <strong>sorting</strong>, <strong>filtering</strong>, or <strong>searching</strong> the dataset.</li>



<li><strong>User Interaction</strong>: Users can perform actions like <strong>selecting rows</strong>, <strong>editing cells</strong>, and <strong>clicking buttons</strong> embedded within the grid.</li>



<li><strong>Updating Data</strong>: When data is modified, the GridView is updated to reflect these changes (e.g., when a user edits a cell or adds a new row).</li>



<li><strong>Pagination and Refresh</strong>: If the dataset is large, users can navigate through different pages of data, and the GridView may automatically refresh after each page change.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading"><strong>Step-by-Step Getting Started Guide for GridView</strong></h2>



<h3 class="wp-block-heading"><strong>Step 1: Choose Your Framework or Library</strong></h3>



<p class="wp-block-paragraph">First, decide on the platform and tools you’ll use to create the GridView:</p>



<ul class="wp-block-list">
<li><strong>For web applications</strong>: Use <strong>HTML</strong>, <strong>CSS</strong>, and <strong>JavaScript</strong>. You can enhance your GridView with libraries like <strong>AG-Grid</strong>, <strong>DataTables</strong>, or <strong>React-Table</strong> for more advanced features.</li>



<li><strong>For mobile apps</strong>: Use <strong>iOS&#8217;s UITableView</strong> or <strong>Android&#8217;s RecyclerView</strong> for native implementations.</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 2: Set Up Your Development Environment</strong></h3>



<p class="wp-block-paragraph">Set up your development environment based on the framework you&#8217;ve chosen. If you’re building a web app, make sure you have an editor (e.g., <strong>Visual Studio Code</strong>) and a local server (e.g., <strong>XAMPP</strong>, <strong>Node.js</strong>) ready.</p>



<h3 class="wp-block-heading"><strong>Step 3: Define the Data Source</strong></h3>



<p class="wp-block-paragraph">Prepare your data source. This could be:</p>



<ul class="wp-block-list">
<li>Static data (e.g., arrays in JavaScript).</li>



<li>Data retrieved from an API or database.</li>
</ul>



<h3 class="wp-block-heading"><strong>Step 4: Create the Basic HTML Structure</strong></h3>



<p class="wp-block-paragraph">If you’re building a web app, start by creating the basic HTML structure for your GridView:</p>



<pre class="wp-block-preformatted">htmlCopy<code>&lt;table id="gridview"&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;Age&lt;/th&gt;
      &lt;th&gt;Location&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;!-- Data rows will be inserted here dynamically --&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>



<h3 class="wp-block-heading"><strong>Step 5: Bind the Data to the GridView</strong></h3>



<p class="wp-block-paragraph">Use JavaScript or a framework-specific method to bind the data to the GridView. For example, in <strong>JavaScript</strong>, you can loop through the data and create rows dynamically.</p>



<pre class="wp-block-preformatted">javascriptCopy<code>const data = [
  { name: 'John Doe', age: 30, location: 'New York' },
  { name: 'Jane Smith', age: 25, location: 'Los Angeles' },
];

const gridView = document.querySelector('#gridview tbody');

data.forEach(item =&gt; {
  const row = document.createElement('tr');
  row.innerHTML = `&lt;td&gt;${item.name}&lt;/td&gt;&lt;td&gt;${item.age}&lt;/td&gt;&lt;td&gt;${item.location}&lt;/td&gt;`;
  gridView.appendChild(row);
});
</code></pre>



<h3 class="wp-block-heading"><strong>Step 6: Implement Sorting and Filtering</strong></h3>



<p class="wp-block-paragraph">Implement sorting and filtering functionality using JavaScript. You can add event listeners to the <strong>column headers</strong> for sorting or create a <strong>filter box</strong> to search for data.</p>



<h3 class="wp-block-heading"><strong>Step 7: Add Pagination</strong></h3>



<p class="wp-block-paragraph">For large datasets, implement pagination by splitting data into pages and updating the GridView when the user clicks <strong>Next</strong> or <strong>Previous</strong>.</p>



<h3 class="wp-block-heading"><strong>Step 8: Style the GridView</strong></h3>



<p class="wp-block-paragraph">Use <strong>CSS</strong> to style the GridView, ensuring it is responsive, well-organized, and fits your application&#8217;s theme.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/gridview-a-complete-guide-to-data-display-and-management-in-applications/">GridView: A Complete Guide to Data Display and Management in Applications</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/gridview-a-complete-guide-to-data-display-and-management-in-applications/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to fetch data from multiple tables in laravel</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-fetch-data-from-multiple-tables-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-fetch-data-from-multiple-tables-in-laravel/#comments</comments>
		
		<dc:creator><![CDATA[dharmendra K]]></dc:creator>
		<pubDate>Sat, 01 May 2021 17:21:33 +0000</pubDate>
				<category><![CDATA[datatables]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6057</guid>

					<description><![CDATA[<p>Step 1: Download Laravel Framework For download fresh copy of Laravel framework, so first we have to into command prompt [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-fetch-data-from-multiple-tables-in-laravel/">How to fetch data from multiple tables in laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Step 1:</strong> <strong>Download Laravel Framework</strong></p>



<p class="wp-block-paragraph">For download fresh copy of Laravel framework, so first we have to into command prompt and run following command. This command will make <strong>join_table</strong> directory and under that directory it will download Laravel framework latest version.</p>



<pre class="wp-block-code"><code>composer create-project --prefer-dist laravel/laravel join_table "5.8.*"</code></pre>



<figure class="wp-block-image size-large"><img decoding="async" width="742" height="87" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/join-table.jpg" alt="" class="wp-image-6059" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/join-table.jpg 742w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/join-table-300x35.jpg 300w" sizes="(max-width: 742px) 100vw, 742px" /></figure>



<p class="wp-block-paragraph"><strong>Step 2:</strong> <strong><strong>Make Database connection</strong></strong></p>



<p class="wp-block-paragraph">After download and install Laravel framework and after this we want to make first database connection. So for make database connection, we have to open <strong>.env</strong> file and under this file, we have to define mysql database configuration. So it will create database connection in Laravel framework.</p>



<pre class="wp-block-code"><code>DB_DATABASE=testing
DB_USERNAME=root</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="298" height="140" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/database.jpg" alt="" class="wp-image-6061"/></figure>



<p class="wp-block-paragraph"><strong>Step3:</strong> <strong><strong>S</strong></strong>ql file import</p>



<p class="wp-block-paragraph">Once you have make database connection, then after we have to make table in mysql database. So for this you have to run following sql script in your local database, so it will create table in your define mysql database.</p>



<script src="https://gist.github.com/dharmu9898/a1dc5f1d95690a118ac762cbc6776cd4.js"></script>



<p class="wp-block-paragraph"><strong>Step3:</strong> <strong>Create Model Class</strong></p>



<p class="wp-block-paragraph">In Laravel framework, we have to create model class for database related operation. So for create model classe using compost, we have go to command prompt and run following command, this command will make model class file with name <strong>Country.php</strong> under <strong>app/Models</strong> folder.</p>



<pre class="wp-block-code"><code>php artisan make:model Country</code></pre>



<p class="wp-block-paragraph">After create model class, we have to open that file and under that file we have to define mysql table name details and column details.</p>



<script src="https://gist.github.com/dharmu9898/17bec28451a21a38304ae4531a3808a6.js"></script>



<p class="wp-block-paragraph"><strong>Step4:<strong>Create Controller Class</strong></strong></p>



<p class="wp-block-paragraph">Under this Laravel framework, for handle HTTP request we have to create controller class. So for create controller using compost, we have go to command prompt and run following command.</p>



<pre class="wp-block-code"><code>php artisan make:controller JointableController</code></pre>



<p class="wp-block-paragraph">Once your controller class has been create then for open that file, we have go to <strong>app/Http/Controllers/JointableController.php</strong> file and under this file you have write following code for join multiple table using eloquent model and fetch data from multiple table in single query execution.</p>



<script src="https://gist.github.com/dharmu9898/31badcf17904243868c7c25e2c59ae96.js"></script>



<p class="wp-block-paragraph"><strong>Step4:</strong> <strong>Create View Blade file</strong></p>



<p class="wp-block-paragraph">For display HTML output in browser, so we have to create view blade file in Laravel framework. In Laravel framework view blade file has been store under <strong>resources/views</strong> folder. Under this file, we have create <strong>join_table.blade.php</strong> file. Under this file, it will received data from controller class file. You can find source code of this view blade file in below.</p>



<script src="https://gist.github.com/dharmu9898/c4d93855b8663a46be2ad8c73ae79965.js"></script>



<p class="wp-block-paragraph"><strong>Step 5: Set Route</strong></p>



<p class="wp-block-paragraph">Under this Laravel framework, we have to set route of the controller method. For set route in Laravel 8 framework, we have to open <strong>routes/web.php</strong> file. In Laravel 8 framework for set route, we have to first import our controller class under this <strong>web.php</strong> file. And for set route you can find source code below.</p>



<script src="https://gist.github.com/dharmu9898/3fb54f51a2c683d982aec6ea34eb1a2d.js"></script>



<p class="wp-block-paragraph"><strong>Step 6:</strong> <strong>Run Laravel Server</strong></p>



<p class="wp-block-paragraph">After follow all above steps now all are set now we want to run Laravel application in browser. So for this, we have to go command prompt and run following command.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
php artisan serve

</pre></div>


<p class="wp-block-paragraph">Once you have run above command so after run this command it will provide us base url of our Laravel application. So for check above script output, we have to hit following url in browser.</p>



http://127.0.0.1/join_table



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-fetch-data-from-multiple-tables-in-laravel/">How to fetch data from multiple tables in laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-fetch-data-from-multiple-tables-in-laravel/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
