<?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>localhost Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/localhost/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/localhost/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:46 +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>Define PHP and How to work?</title>
		<link>https://www.scmgalaxy.com/tutorials/define-php-and-how-to-work/</link>
					<comments>https://www.scmgalaxy.com/tutorials/define-php-and-how-to-work/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 29 Jun 2021 03:03:25 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6566</guid>

					<description><![CDATA[<p>Type of website:- A static page is called that in which the information that is there is in the name [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/define-php-and-how-to-work/">Define PHP and How to work?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Type of website:-</h2>



<p class="wp-block-paragraph">A static page is called that in which the information that is there is in the name of every user. You cannot change anything in a static page. It is only used to see information.</p>



<h2 class="wp-block-heading">Dynamic website:-</h2>



<p class="wp-block-paragraph">Dynamic website is user-friendly, user can interact with it. The page in which the user can interact is called a dynamic website. Like submitting a form by filling in a web page. In this, each user gives different information, the user who enters the information gets the same result.</p>



<h2 class="wp-block-heading">How PHP works?</h2>



<p class="wp-block-paragraph">There is a client who sends a request or works to visit a website.</p>



<p class="wp-block-paragraph">web server</p>



<p class="wp-block-paragraph">The webserver provides us this facility which will be there for 24 hours. So that your client will be able to send that request by any time difference and its corresponding web server will be able to respond to it. A server will run in the webserver which you call Apache server. </p>



<p class="wp-block-paragraph">This is the web server, this is your small storage in which you have a database created. In which your own server is running which supports PHP. As a programmer, whatever site he has developed is the content of the whole site or is it accessories, They give way by storing them in their web server. You will also create a database so that the user can access it anytime.</p>



<p class="wp-block-paragraph">client &gt; apache&gt; PHP&gt; database&gt; PHP&gt; Apache&gt; client</p>



<h2 class="wp-block-heading">Development environment</h2>



<p class="wp-block-paragraph">Operating system &#8211; Windows, Linux, Mac, etc.</p>



<p class="wp-block-paragraph">Web server &#8211; XAMP, WAMP, MAMP etc.</p>



<p class="wp-block-paragraph">Editor/IDE- Notepad, Notepad++, notepad, brackets, eclipse etc.</p>



<p class="wp-block-paragraph">Web browser &#8211; chrome, Firefox etc.</p>



<h2 class="wp-block-heading">MySQL</h2>



<p class="wp-block-paragraph">MySQL ek database management system hai, is a kind of software in which you write MySQL. MySQL is a software and SQL is a language.</p>



<p class="wp-block-paragraph">When you install XAMPP, you get:<br>Apache + MariaDB + PHP + Perl</p>



<p class="wp-block-paragraph">Apache + MySQL + PHP + Perl</p>



<h2 class="wp-block-heading">The basic structure of PHP</h2>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;?php   opening markup/ Opening tag

php codes;

?&gt; closing markup/ closing tag
</pre></div>


<p class="wp-block-paragraph">Whatever is written between these two is called php code.</p>



<p class="wp-block-paragraph">We can write Php with HTML</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;!DOCTYPE html&gt;
&amp;lt;html&gt;
	&amp;lt;body&gt;
		&amp;lt;h1&gt;&amp;lt;body&gt;DevOpsSchool&amp;lt;/h1&gt;
	&amp;lt;?php
		echo&#039;hello devopsschool&#039;;
	?&gt;
	
	&amp;lt;/body&gt;
&amp;lt;/html&gt;
</pre></div>


<h2 class="wp-block-heading">How to run on the local server</h2>



<p class="wp-block-paragraph">If you have to run the PHP file in the local server, then first you have to open the XAMMP control panel, then you have to open apache and MySQL in it, this is the first thing. After that you have to go to this puck, then where you have saved the XAMMP file, you have to open the sump file, after that you have to open the htdos. After that you have to go to this PC, then open the file where you have saved XAMPP. After that htdcos has to be opened. Your project will have to create a file, all your files will be made from PHP, HTML, ccs, javascript, audio, images, videos, etc. Then go to your browser and open localhost, then type the name of your project in it and open it. After that, your PHP file will start running.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/define-php-and-how-to-work/">Define PHP and How to work?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/define-php-and-how-to-work/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PhpMyAdmin is suddenly showing errors Fatal error: Uncaught TypeError: Return value of PhpMyAdmin\Relation</title>
		<link>https://www.scmgalaxy.com/tutorials/phpmyadmin-is-suddenly-showing-errors-fatal-error-uncaught-typeerror-return-value-of-phpmyadminrelation/</link>
					<comments>https://www.scmgalaxy.com/tutorials/phpmyadmin-is-suddenly-showing-errors-fatal-error-uncaught-typeerror-return-value-of-phpmyadminrelation/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Tue, 22 Jun 2021 11:05:07 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Fatal error]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[phpmyadmin/relation]]></category>
		<category><![CDATA[suddenly showing errors]]></category>
		<category><![CDATA[type error]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6552</guid>

					<description><![CDATA[<p>When you import sql file in your database and after few moment not import your sql file in your database [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/phpmyadmin-is-suddenly-showing-errors-fatal-error-uncaught-typeerror-return-value-of-phpmyadminrelation/">PhpMyAdmin is suddenly showing errors Fatal error: Uncaught TypeError: Return value of PhpMyAdmin\Relation</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When you import sql file in your database and after few moment not import your sql file in your database then showing this type of error.</p>



<p class="wp-block-paragraph"><strong>Fatal error: Uncaught TypeError: Return value of PhpMyAdmin\Relation::getRelationsParam() must be of the type array,</strong></p>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="752" height="321" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/fatal_error_localhost_phpmyadmin.png" alt="" class="wp-image-6553" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/fatal_error_localhost_phpmyadmin.png 752w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/fatal_error_localhost_phpmyadmin-300x128.png 300w" sizes="(max-width: 752px) 100vw, 752px" /></figure>



<p class="wp-block-paragraph">Not any solutions for this error. So,<br>Please try clearing your browser cache and removing phpMyAdmin cookies, which start with &#8220;pma&#8221;.</p>



<p class="wp-block-paragraph"><strong>Follow these steps</strong>&#8211;</p>



<ul class="wp-block-list"><li>Open up your phpMyAdmin in browser</li><li>Press F12 to open Developer tools</li><li>go to Application &gt; Clear storage</li><li>Clear all Cookies and Cache</li><li>Try refreshing the page.</li></ul>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="419" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/localhost_phpmyadmin-1024x419.png" alt="" class="wp-image-6554" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/localhost_phpmyadmin-1024x419.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/localhost_phpmyadmin-300x123.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/localhost_phpmyadmin-768x314.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/localhost_phpmyadmin-1536x628.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/06/localhost_phpmyadmin.png 1594w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Your http://localhost/phpmyadmin/ will be run.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/phpmyadmin-is-suddenly-showing-errors-fatal-error-uncaught-typeerror-return-value-of-phpmyadminrelation/">PhpMyAdmin is suddenly showing errors Fatal error: Uncaught TypeError: Return value of PhpMyAdmin\Relation</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/phpmyadmin-is-suddenly-showing-errors-fatal-error-uncaught-typeerror-return-value-of-phpmyadminrelation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>General error: 1364 Field ‘phone’ doesn’t have a default value</title>
		<link>https://www.scmgalaxy.com/tutorials/general-error-1364-field-phone-doesnt-have-a-default-value/</link>
					<comments>https://www.scmgalaxy.com/tutorials/general-error-1364-field-phone-doesnt-have-a-default-value/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Wed, 12 May 2021 12:26:22 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[crud operation in laravel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6225</guid>

					<description><![CDATA[<p>SQLSTATE[HY000]: General error: 1364 Field ‘phone’ doesn’t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/general-error-1364-field-phone-doesnt-have-a-default-value/">General error: 1364 Field ‘phone’ doesn’t have a default value</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="868c">SQLSTATE[HY000]: General error: 1364 Field ‘phone’ doesn’t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, `created_at`) values (amti,&nbsp;<a href="mailto:kuam@gmail.com">kuam@gmail.com</a>, sdafasdf, 642917381.jpg, 2021–05–11 10:58:35, 2021–05–11 10:58:35))</p>



<p class="wp-block-paragraph" id="79c2">When I’m submit form then got General error field doesn’t have default value. let’s go to solve this.</p>



<p class="wp-block-paragraph" id="179f"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f449.png" alt="👉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 1 step go to your&nbsp;<a href="http://localhost/phpmyadmin/db_structure.php?server=1&amp;db=exam-system">database</a>&nbsp;and put change none&gt;to Null and save.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/2444/1*Zbsljf54T7i52ltaXTUC5g.png" alt=""/></figure>



<p class="wp-block-paragraph" id="6ef5">Lets go to&nbsp;<a href="http://localhost/phpmyadmin/tbl_structure.php?db=bootstrap-model&amp;table=products&amp;goto=tbl_structure.php&amp;back=tbl_structure.php&amp;field=name&amp;change_column=1">phpmyadmin</a></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*YsfnX5FEnXN9iu1bpW1Jjw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="6574"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f449.png" alt="👉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Click on Structure</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*exRlrUyPQlBmv_L_IdBkzg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="aad5">Click on change and change all field to None to Null and save</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*5WuhrjZmdV7gF7r3T5Bnpw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="034b">Set Null and click on save button</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*mZEfhEoH86McY9ejPgMhcA.png" alt=""/></figure>



<p class="wp-block-paragraph" id="a912"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f441.png" alt="👁" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f441.png" alt="👁" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Now its error has been solved and your data has been stored successfully.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*GHQjKJWQAhnhWxHcQSbCwQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="e8d5">Thanks</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/general-error-1364-field-phone-doesnt-have-a-default-value/">General error: 1364 Field ‘phone’ doesn’t have a default value</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/general-error-1364-field-phone-doesnt-have-a-default-value/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add Data in DataTable in Laravel Crud</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-add-data-in-datatable-in-laravel-crud/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-add-data-in-datatable-in-laravel-crud/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 06 May 2021 11:03:32 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[crud]]></category>
		<category><![CDATA[datatable]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6094</guid>

					<description><![CDATA[<p>In this tutorial I&#8217;m going to describe how to add data in DataTable in laravel 8 we will create single [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-data-in-datatable-in-laravel-crud/">How to Add Data in DataTable in Laravel Crud</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="b01f">In this tutorial I&#8217;m going to describe how to add data in DataTable in laravel 8 we will create single page companies ajax crud application (SPA) using dataTables js, modal and jQuery in laravel 8.</p>



<pre class="wp-block-preformatted">Laravel 8 Ajax CRUD Tutorial using Datatable JS<br>Step 1 – Download Laravel 8 App<br>Step 2 – Database Configuration<br>Step 3 – Installing Yajra Datatables<br>Step 4 – Make Model &amp; Migration<br>Step 5 – Make Routes<br>Step 6 – Create AJAX CRUD Datatables Controller<br>Step 7 – Create Blade Views File<br>companies.blade.php<br>company-action.blade.php<br>Step 8 – Run Development Server</pre>



<h1 class="wp-block-heading" id="b64a">Step 1 — Download Laravel 8 App</h1>



<p class="wp-block-paragraph" id="1b90">1st step Install laravel project and new setup, lets open the terminal C:\xampp\htdocs and paste below code</p>



<pre class="wp-block-preformatted">composer create-project --prefer-dist laravel/laravel laraveldatatable</pre>



<h1 class="wp-block-heading" id="4ff7">Step 2 — Database Configuration</h1>



<p class="wp-block-paragraph" id="be79">Setup database with your installed laravel 8 project . lets go to .env folder and put database name and connect to database.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*l1fZ0rXU6B1--IbRQweRFA.png" alt=""/></figure>



<pre class="wp-block-preformatted">DB_CONNECTION=mysql<br>DB_HOST=127.0.0.1<br>DB_PORT=3306<br>DB_DATABASE=laraveldatatable<br>DB_USERNAME=root<br>DB_PASSWORD=</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*pH11rQJuj3RYy-SRAKT2XQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="a301">Next run this command</p>



<pre class="wp-block-preformatted">php artisan migrate</pre>



<h1 class="wp-block-heading" id="9bf6">Step 3 — Installing Yajra Datatables</h1>



<pre class="wp-block-preformatted">composer require yajra/laravel-datatables-oracle</pre>



<p class="wp-block-paragraph" id="6085">Then configure datatables package. So go to config directory and open app.php file. And add the following service providers into app.php file:</p>



<p class="wp-block-paragraph" id="3d41">Go to -&gt; config/app.php and put in providers section</p>



<pre class="wp-block-preformatted">'providers' =&gt; [<br>    <br>   Yajra\Datatables\DatatablesServiceProvider::class,<br>],<br> <br> 'aliases' =&gt; [<br> <br>  'Datatables' =&gt; Yajra\Datatables\Facades\Datatables::class,<br>]</pre>



<p class="wp-block-paragraph" id="21b6">Then publish laravel datatables vendor package by using below command:</p>



<pre class="wp-block-preformatted">php artisan vendor:publish</pre>



<h1 class="wp-block-heading" id="30e5">Step 4 — Make Model &amp; Migration</h1>



<pre class="wp-block-preformatted">php artisan make:model Company -m</pre>



<p class="wp-block-paragraph" id="feed">Simply copy this code and paste in companies model</p>



<pre class="wp-block-preformatted">&lt;?php<br><br>use Illuminate\Database\Migrations\Migration;<br>use Illuminate\Database\Schema\Blueprint;<br>use Illuminate\Support\Facades\Schema;<br><br>class CreateCompaniesTable extends Migration<br>{<br>    /**<br>     * Run the migrations.<br>     *<br>     * @return void<br>     */<br>    public function up()<br>    {<br>        Schema::create('companies', function (Blueprint $table) {<br>            $table-&gt;id();<br>            $table-&gt;timestamps();<br>            $table-&gt;string('name');<br>            $table-&gt;string('email');<br>            $table-&gt;string('address');<br>        });<br>    }<br><br>    /**<br>     * Reverse the migrations.<br>     *<br>     * @return void<br>     */<br>    public function down()<br>    {<br>        Schema::dropIfExists('companies');<br>    }<br>}</pre>



<p class="wp-block-paragraph" id="8256">Lets migrate table to database run this command</p>



<pre class="wp-block-preformatted">php artisan migrate</pre>



<p class="wp-block-paragraph" id="2c99">After that, lets go to app/models directory and open company.php model file. Then add the following code into it:</p>



<pre class="wp-block-preformatted">&lt;?php<br><br>namespace App;<br><br>use Illuminate\Database\Eloquent\Model;<br><br>class Company extends Model<br>{<br>    <br>    protected $fillable =['name', 'email', 'address'];<br><br>}</pre>



<h1 class="wp-block-heading" id="5a00">Step 5 — Make Routes</h1>



<pre class="wp-block-preformatted">&lt;?php<br><br>use Illuminate\Support\Facades\Route;<br><br>/*<br>|--------------------------------------------------------------------------<br>| Web Routes<br>|--------------------------------------------------------------------------<br>|<br>| Here is where you can register web routes for your application. These<br>| routes are loaded by the RouteServiceProvider within a group which<br>| contains the "web" middleware group. Now create something great!<br>|<br>*/<br><br>Route::get('/', function () {<br>    return view('welcome');<br>});<br><br>use App\Http\Controllers\DataTableAjaxCRUDController;<br> <br>Route::get('ajax-crud-datatable', [DataTableAjaxCRUDController::class, 'index']);<br>Route::post('store-company', [DataTableAjaxCRUDController::class, 'store']);<br>Route::post('edit-company', [DataTableAjaxCRUDController::class, 'edit']);<br>Route::post('delete-company', [DataTableAjaxCRUDController::class, 'destroy']);</pre>



<h1 class="wp-block-heading" id="5ea7">Step 6 — Create AJAX CRUD Datatables Controller</h1>



<pre class="wp-block-preformatted">php artisan make:controller DataTableAjaxCRUDController -r</pre>



<p class="wp-block-paragraph" id="0c46">Lets go to controller and copy below code and paste there</p>



<pre class="wp-block-preformatted">&lt;?php<br><br>namespace App\Http\Controllers;<br><br><br>use Illuminate\Http\Request;<br>use App\Company;<br>class DataTableAjaxCRUDController extends Controller<br>{<br>    /**<br>     * Display a listing of the resource.<br>     *<br>     * @return \Illuminate\Http\Response<br>     */<br>    public function index()<br>    {<br>        if(request()-&gt;ajax()) {<br>            return datatables()-&gt;of(Company::select('*'))<br>            -&gt;addColumn('action', 'company-action')<br>            -&gt;rawColumns(['action'])<br>            -&gt;addIndexColumn()<br>            -&gt;make(true);<br>        }<br>        return view('companies');<br>    }<br><br>    /**<br>     * Show the form for creating a new resource.<br>     *<br>     * @return \Illuminate\Http\Response<br>     */<br>    public function create()<br>    {<br>        //<br>    }<br><br>    /**<br>     * Store a newly created resource in storage.<br>     *<br>     * @param  \Illuminate\Http\Request  $request<br>     * @return \Illuminate\Http\Response<br>     */<br>    public function store(Request $request)<br>    {<br>        $companyId = $request-&gt;id;<br> <br>        $company   =   Company::updateOrCreate(<br>                    [<br>                     'id' =&gt; $companyId<br>                    ],<br>                    [<br>                    'name' =&gt; $request-&gt;name, <br>                    'email' =&gt; $request-&gt;email,<br>                    'address' =&gt; $request-&gt;address<br>                    ]);    <br>                         <br>        return Response()-&gt;json($company);<br>    }<br><br>    /**<br>     * Display the specified resource.<br>     *<br>     * @param  int  $id<br>     * @return \Illuminate\Http\Response<br>     */<br>    public function show($id)<br>    {<br>        //<br>    }<br><br>    /**<br>     * Show the form for editing the specified resource.<br>     *<br>     * @param  int  $id<br>     * @return \Illuminate\Http\Response<br>     */<br>    public function edit($id)<br>    {<br>        $where = array('id' =&gt; $request-&gt;id);<br>        $company = Company::where($where)-&gt;first();<br><br>        return Response()-&gt;json($company);<br>    }<br><br>    /**<br>     * Update the specified resource in storage.<br>     *<br>     * @param  \Illuminate\Http\Request  $request<br>     * @param  int  $id<br>     * @return \Illuminate\Http\Response<br>     */<br>    public function update(Request $request, $id)<br>    {<br>        //<br>    }<br><br>    /**<br>     * Remove the specified resource from storage.<br>     *<br>     * @param  int  $id<br>     * @return \Illuminate\Http\Response<br>     */<br>    public function destroy($id)<br>    {<br>        $company = Company::where('id','$request-&gt;id')-&gt;delete();<br>        return Response()-&gt;json($company);<br>    }<br>}</pre>



<h1 class="wp-block-heading" id="4f8c">Step 6 — Create Blade Views File</h1>



<p class="wp-block-paragraph" id="f046">Create two blade views file, which is following:</p>



<ul class="wp-block-list"><li>companies.blade.php</li></ul>



<p class="wp-block-paragraph" id="7356">Next go to companies.blade.php file and paste below code</p>



<pre class="wp-block-preformatted">&lt;!DOCTYPE html&gt;<br>&lt;html lang="en"&gt;<br>&lt;head&gt;<br>&lt;meta charset="UTF-8"&gt;<br>&lt;title&gt;Laravel 8 AJAX CRUD using DataTable js Tutorial From Scratch - Tutsmake.com&lt;/title&gt;<br>&lt;meta name="csrf-token" content="{{ csrf_token() }}"&gt;<br>&lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" &gt;<br>&lt;script src="https://code.jquery.com/jquery-3.5.1.min.js"&gt;&lt;/script&gt;<br>&lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"&gt;&lt;/script&gt;<br>&lt;link  href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css" rel="stylesheet"&gt;<br>&lt;script src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;div class="container mt-2"&gt;<br>&lt;div class="row"&gt;<br>&lt;div class="col-lg-12 margin-tb"&gt;<br>&lt;div class="pull-left"&gt;<br>&lt;h2&gt;Laravel 8 Ajax CRUD DataTables Tutorial&lt;/h2&gt;<br>&lt;/div&gt;<br>&lt;div class="pull-right mb-2"&gt;<br>&lt;a class="btn btn-success" onClick="add()" href="javascript:void(0)"&gt; Create Company&lt;/a&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>@if ($message = Session::get('success'))<br>&lt;div class="alert alert-success"&gt;<br>&lt;p&gt;{{ $message }}&lt;/p&gt;<br>&lt;/div&gt;<br>@endif<br>&lt;div class="card-body"&gt;<br>&lt;table class="table table-bordered" id="ajax-crud-datatable"&gt;<br>&lt;thead&gt;<br>&lt;tr&gt;<br>&lt;th&gt;Id&lt;/th&gt;<br>&lt;th&gt;Name&lt;/th&gt;<br>&lt;th&gt;Email&lt;/th&gt;<br>&lt;th&gt;Address&lt;/th&gt;<br>&lt;th&gt;Created at&lt;/th&gt;<br>&lt;th&gt;Action&lt;/th&gt;<br>&lt;/tr&gt;<br>&lt;/thead&gt;<br>&lt;/table&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;!-- boostrap company model --&gt;<br>&lt;div class="modal fade" id="company-modal" aria-hidden="true"&gt;<br>&lt;div class="modal-dialog modal-lg"&gt;<br>&lt;div class="modal-content"&gt;<br>&lt;div class="modal-header"&gt;<br>&lt;h4 class="modal-title" id="CompanyModal"&gt;&lt;/h4&gt;<br>&lt;/div&gt;<br>&lt;div class="modal-body"&gt;<br>&lt;form action="javascript:void(0)" id="CompanyForm" name="CompanyForm" class="form-horizontal" method="POST" enctype="multipart/form-data"&gt;<br>&lt;input type="hidden" name="id" id="id"&gt;<br>&lt;div class="form-group"&gt;<br>&lt;label for="name" class="col-sm-2 control-label"&gt;Company Name&lt;/label&gt;<br>&lt;div class="col-sm-12"&gt;<br>&lt;input type="text" class="form-control" id="name" name="name" placeholder="Enter Company Name" maxlength="50" required=""&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;  <br>&lt;div class="form-group"&gt;<br>&lt;label for="name" class="col-sm-2 control-label"&gt;Company Email&lt;/label&gt;<br>&lt;div class="col-sm-12"&gt;<br>&lt;input type="email" class="form-control" id="email" name="email" placeholder="Enter Company Email" maxlength="50" required=""&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;div class="form-group"&gt;<br>&lt;label class="col-sm-2 control-label"&gt;Company Address&lt;/label&gt;<br>&lt;div class="col-sm-12"&gt;<br>&lt;input type="text" class="form-control" id="address" name="address" placeholder="Enter Company Address" required=""&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;div class="col-sm-offset-2 col-sm-10"&gt;<br>&lt;button type="submit" class="btn btn-primary" id="btn-save"&gt;Save changes<br>&lt;/button&gt;<br>&lt;/div&gt;<br>&lt;/form&gt;<br>&lt;/div&gt;<br>&lt;div class="modal-footer"&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;!-- end bootstrap model --&gt;<br>&lt;/body&gt;<br>&lt;script type="text/javascript"&gt;<br>$(document).ready( function () {<br>$.ajaxSetup({<br>headers: {<br>'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')<br>}<br>});<br>$('#ajax-crud-datatable').DataTable({<br>processing: true,<br>serverSide: true,<br>ajax: "{{ url('ajax-crud-datatable') }}",<br>columns: [<br>{ data: 'id', name: 'id' },<br>{ data: 'name', name: 'name' },<br>{ data: 'email', name: 'email' },<br>{ data: 'address', name: 'address' },<br>{ data: 'created_at', name: 'created_at' },<br>{data: 'action', name: 'action', orderable: false},<br>],<br>order: [[0, 'desc']]<br>});<br>});<br>function add(){<br>$('#CompanyForm').trigger("reset");<br>$('#CompanyModal').html("Add Company");<br>$('#company-modal').modal('show');<br>$('#id').val('');<br>}   <br>function editFunc(id){<br>$.ajax({<br>type:"POST",<br>url: "{{ url('edit-company') }}",<br>data: { id: id },<br>dataType: 'json',<br>success: function(res){<br>$('#CompanyModal').html("Edit Company");<br>$('#company-modal').modal('show');<br>$('#id').val(res.id);<br>$('#name').val(res.name);<br>$('#address').val(res.address);<br>$('#email').val(res.email);<br>}<br>});<br>}  <br>function deleteFunc(id){<br>if (confirm("Delete Record?") == true) {<br>var id = id;<br>// ajax<br>$.ajax({<br>type:"POST",<br>url: "{{ url('delete-company') }}",<br>data: { id: id },<br>dataType: 'json',<br>success: function(res){<br>var oTable = $('#ajax-crud-datatable').dataTable();<br>oTable.fnDraw(false);<br>}<br>});<br>}<br>}<br>$('#CompanyForm').submit(function(e) {<br>e.preventDefault();<br>var formData = new FormData(this);<br>$.ajax({<br>type:'POST',<br>url: "{{ url('store-company')}}",<br>data: formData,<br>cache:false,<br>contentType: false,<br>processData: false,<br>success: (data) =&gt; {<br>$("#company-modal").modal('hide');<br>var oTable = $('#ajax-crud-datatable').dataTable();<br>oTable.fnDraw(false);<br>$("#btn-save").html('Submit');<br>$("#btn-save"). attr("disabled", false);<br>},<br>error: function(data){<br>console.log(data);<br>}<br>});<br>});<br>&lt;/script&gt;<br>&lt;/html&gt;</pre>



<p class="wp-block-paragraph" id="f9f2">Lets go to your browser and run this url</p>



<pre class="wp-block-preformatted">http://127.0.0.1:8000/ajax-crud-datatable</pre>



<p class="wp-block-paragraph" id="a884">Now its open like this and successfully working and store in database as well.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1248/1*hpWdD7q8QCep4Hf3PgYXdw.png" alt=""/></figure>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1254/1*DbJaCrwlUyJbqA9MMcg9pw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="2e1b">Thanks <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f64f.png" alt="🙏" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f64f.png" alt="🙏" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-add-data-in-datatable-in-laravel-crud/">How to Add Data in DataTable in Laravel Crud</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-add-data-in-datatable-in-laravel-crud/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to create virtual local host setup in Laravel</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-create-virtual-local-host-setup-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-create-virtual-local-host-setup-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Wed, 14 Apr 2021 12:50:18 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[virtualhost]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5879</guid>

					<description><![CDATA[<p>In this tutorial I’m going to describe how to set up virtual host in Laravel. Please follow this Tutorial and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-virtual-local-host-setup-in-laravel/">How to create virtual local host setup in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/600/1*Y9U8F3GfKnkF2K5oNPi_2A.jpeg" alt=""/></figure>



<p class="wp-block-paragraph" id="ac66">In this tutorial I’m going to describe how to set up virtual host in Laravel. Please follow this Tutorial and you able to create successfully virtual host in Laravel</p>



<p class="wp-block-paragraph" id="f9aa">1. Go to C drive and Go to this Directory-&gt;&nbsp;<strong>C:\xampp\apache\conf\extra</strong>&nbsp;and open<strong>&nbsp;httpd-vhosts</strong>&nbsp;name of folder</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/516/1*gErEoKeCEyJ3lXtOoi2GwQ.png" alt=""/><figcaption>Virtual-host-in-laravel</figcaption></figure>



<p class="wp-block-paragraph" id="b2ce">Open this folder -&gt; httpd-vhosts</p>



<p class="wp-block-paragraph" id="78b3">2nd Step Copy Below Code</p>



<p class="wp-block-paragraph" id="1b9c"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p class="wp-block-paragraph" id="f9bc"><strong>&lt;VirtualHost *:80&gt;</strong></p>



<p class="wp-block-paragraph" id="0ba5"><strong>DocumentRoot “C:/xampp/htdocs/blog/public”</strong></p>



<p class="wp-block-paragraph" id="3206"><strong>ServerName localhost</strong></p>



<p class="wp-block-paragraph" id="4bee"><strong>&lt;/VirtualHost&gt;</strong></p>



<p class="wp-block-paragraph" id="08c6"><strong>&lt;VirtualHost *:80&gt;</strong></p>



<p class="wp-block-paragraph" id="cc20"><strong>DocumentRoot “C:/xampp/htdocs/blog/public”</strong></p>



<p class="wp-block-paragraph" id="a0f4"><strong>ServerName blog.co</strong></p>



<p class="wp-block-paragraph" id="2d1b"><strong>&lt;/VirtualHost&gt;</strong></p>



<p class="wp-block-paragraph" id="3866"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/261d.png" alt="☝" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p class="wp-block-paragraph" id="9907">and paste simply there in this folder -&gt;&nbsp;<strong>httpd-vhosts</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/785/1*jixWmcwzRqGxv7G4kHGCrw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="d548">3rd Step go&nbsp;to windows&nbsp;<strong>C:\Windows\System32\drivers\etc and open hosts folder</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1071/1*u2ldEmYCaK8bl3_J-MHtFg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="e825"><strong>4th step simply copy this</strong></p>



<p class="wp-block-paragraph" id="88d7"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p><strong><em>127.0.0.1 localhost</em></strong></p><p><strong><em>127.0.0.1 blog.co</em></strong></p></blockquote>



<p class="wp-block-paragraph" id="6b92">And paste this folder</p>



<p class="wp-block-paragraph" id="9caa"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/721/1*w1dJbyy8Xbeq4y_S6xBMcg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="ac6b">After stop your xampp apache server and start then</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/671/1*ICx0LjYLuB1Q3-KReMxhUw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="8a81"><strong>And start then Xampp Apache server</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/670/1*G_BFBkZBkNnNHjzhTf8Byw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="908c">And run&nbsp;<strong>blog.co</strong>&nbsp;now you can see blog.co localhost set up is done.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/835/1*wXiUDqZW4SUPOuDa88ooUQ.png" alt=""/></figure>



<p class="wp-block-paragraph">Thanks &#8230;&#8230; <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-virtual-local-host-setup-in-laravel/">How to create virtual local host setup 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-create-virtual-local-host-setup-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Run Ansible Adhoc commands or playbook in Local mode</title>
		<link>https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/</link>
					<comments>https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 06 Sep 2018 06:51:08 +0000</pubDate>
				<category><![CDATA[Ansible]]></category>
		<category><![CDATA[Adhoc]]></category>
		<category><![CDATA[Local mode]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Playbook]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5294</guid>

					<description><![CDATA[<p>If you are trying to run Ansible Adhoc commands or playbook in Local mode, these articles will help you. Ansible [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/">Run Ansible Adhoc commands or playbook in Local mode</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are trying to run Ansible Adhoc commands or playbook in Local mode, these articles will help you.</p>
<p>Ansible can&#8217;t run playbooks locally without ssh if ansible_connection=local is defined in the hosts file, although it can run playbooks locally without ssh with connection: local in the playbook or with flag &#8211;connection=local.</p>
<p><strong># # # # # # # # # # # # Method 1 # # # # # # # # # # # # # # # # # #</strong></p>
<pre class="brush: plain; title: ; notranslate">ansible 127.0.0.1 -m file -a &quot;dest=/opt/a.txt mode=600 state=touch&quot;
ansible 127.0.0.1 -m file -a &quot;dest=/opt/a.txt mode=600 state=file&quot;</pre>
<p><strong># # # # # # # # # # # # Method 2 # # # # # # # # # # # # # # # # # #</strong></p>
<pre class="brush: plain; title: ; notranslate">Inventory file
127.0.0.1 ansible_connection=local
localhost ansible_connection=local</pre>
<p><strong># # # # # # # # # # # # Method 3 # # # # # # # # # # # # # # # # # #</strong></p>
<pre class="brush: plain; title: ; notranslate">---

- name: run the playbook tasks on the localhost
hosts: 127.0.0.1
connection: local
become: yes
tasks:

- name: print out the hostname of target
command: hostname

- name: ensure aptitude is installed
command: apt-get -y install aptitude

- name: update the apt package index i.e. apt-get update
apt: update_cache=yes

- name: upgrade system packages i.e. apt-get upgrade
apt: upgrade=yes

</pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/">Run Ansible Adhoc commands or playbook in Local mode</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/run-ansible-adhoc-commands-or-playbook-in-local-mode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Secure Tunnels to localhost using ngrok</title>
		<link>https://www.scmgalaxy.com/tutorials/secure-tunnels-to-localhost-using-ngrok/</link>
					<comments>https://www.scmgalaxy.com/tutorials/secure-tunnels-to-localhost-using-ngrok/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 06 May 2018 23:57:51 +0000</pubDate>
				<category><![CDATA[ngrok]]></category>
		<category><![CDATA[localhost]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4944</guid>

					<description><![CDATA[<p>Secure Tunnels to localhost using ngrok ngrok is a free tool that allows you to expose a web server running [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/secure-tunnels-to-localhost-using-ngrok/">Secure Tunnels to localhost using ngrok</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-5004" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/architecture-after-ngrok-deployment.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/architecture-after-ngrok-deployment.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/architecture-after-ngrok-deployment-300x175.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Secure Tunnels to localhost using ngrok</strong></p>
<p><strong>ngrok is a free tool that allows you to expose a web server running on your local machine to the internet.</strong> It includes additional functionality that makes it easy to install and manage itself as a native operating system service on Windows, OS X and Linux.</p>
<p>It is is a multiplatform tunnelling, reverse proxy software that establishes secure tunnels from a public endpoint such as internet to a locally running network service while capturing all traffic for detailed inspection and replay.</p>
<p>The following are the issues that we were facing before Ngrok deployment:</p>
<ol>
<li>Unable to expose localhost application directly to internet without DMZ &amp; other network configuration</li>
<li>Unable to demonstrate an application to Client on urgent basis</li>
<li>Unable to share websites for testing purpose</li>
<li>Develop any services which consume Webhooks (HTTP CallBacks)</li>
<li>Can’t share a website temporarily that is running only on our developer machine</li>
<li>Time Consuming on network and DNS configurations</li>
<li>Can’t debug or inspect HTTP Traffic in a precise manner</li>
<li>Can’t run networked services on machines that are firewalled off from the internet</li>
<li>Unable to expose application behind http proxy</li>
<li>Unable to forward non-http and non-local network services</li>
</ol>
<p>It’s really easy to install and use</p>
<p>ngrok is built in Go so it is packaged as binaries for each major platform. To install ngrok do the following:</p>
<ol>
<li>Download the package for your system</li>
<li>Unzip the package</li>
<li>There is no step 3!</li>
</ol>
<p><strong>Once you have ngrok installed, using it to tunnel to an application running on, say, port 3000 is as easy as:</strong></p>
<pre class="brush: plain; title: ; notranslate">$ ./ngrok http 3000</pre>
<p><strong>Once you’ve unzipped the ngrok executable move it to a folder that’s in your $PATH then you can run ngrok from anywhere you want on the command line by just typing:</strong></p>
<pre class="brush: plain; title: ; notranslate">$ ngrok http 3000</pre>
<p><strong>It has a dashboard</strong><br />
http://127.0.0.1:4040</p>
<p><strong>You can secure your tunnels</strong></p>
<pre class="brush: plain; title: ; notranslate">$ ngrok http -auth &quot;user:password&quot; 3000</pre>
<p><strong>You can use custom subdomains</strong></p>
<pre class="brush: plain; title: ; notranslate">$ ngrok http -subdomain=thisisreallycool 3000</pre>
<p><a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/Architecture-after-Ngrok-deployment.jpg"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-4945" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/Architecture-after-Ngrok-deployment.jpg" alt="" width="849" height="478" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/Architecture-after-Ngrok-deployment.jpg 849w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/Architecture-after-Ngrok-deployment-300x169.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/05/Architecture-after-Ngrok-deployment-768x432.jpg 768w" sizes="auto, (max-width: 849px) 100vw, 849px" /></a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/secure-tunnels-to-localhost-using-ngrok/">Secure Tunnels to localhost using ngrok</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/secure-tunnels-to-localhost-using-ngrok/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
