<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rupadana on Medium]]></title>
        <description><![CDATA[Stories by Rupadana on Medium]]></description>
        <link>https://medium.com/@rupadana?source=rss-40ade1033c1d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*inAQQbcmid-1ceHzwxM16g.jpeg</url>
            <title>Stories by Rupadana on Medium</title>
            <link>https://medium.com/@rupadana?source=rss-40ade1033c1d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:49:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rupadana/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[FilaCreating a new panel]]></title>
            <link>https://medium.com/@rupadana/filacreating-a-new-panel-8ce6ad1efa1e?source=rss-40ade1033c1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ce6ad1efa1e</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[filamentphp]]></category>
            <dc:creator><![CDATA[Rupadana]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 13:02:17 GMT</pubDate>
            <atom:updated>2024-03-05T13:02:17.692Z</atom:updated>
            <content:encoded><![CDATA[<h3>Filamentphp — Creating a new panel</h3><h3>Run Command</h3><p>To create a new panel, you can use the make:filament-panel command, passing in the unique name of the new panel:</p><pre>php artisan make:filament-panel app</pre><p>This command will create a new panel called “app”. A configuration file will be created at app/Providers/Filament/AppPanelProvider.php. You can access this panel at /app, but you can customize the path if you don&#39;t want that.</p><p>Since this configuration file is also a Laravel service provider, it needs to be registered in config/app.php. Filament will attempt to do this for you, but if you get an error while trying to access your panel then this process has probably failed. You can manually register the service provider by adding it to the providers array.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ce6ad1efa1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FilaCreate blog resource]]></title>
            <link>https://medium.com/@rupadana/filacreate-blog-resource-89c6b514d5ca?source=rss-40ade1033c1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/89c6b514d5ca</guid>
            <category><![CDATA[filamentphp]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Rupadana]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 13:01:46 GMT</pubDate>
            <atom:updated>2024-03-04T13:01:46.858Z</atom:updated>
            <content:encoded><![CDATA[<h3>Filamentphp — Create blog resource</h3><blockquote><em>Introduction</em></blockquote><p>Resources are static classes that are used to build CRUD interfaces for your Eloquent models. They describe how administrators should be able to interact with data from your app — using tables and forms.</p><blockquote><em>Create a migration</em></blockquote><pre>php artisan make:migration create_blogs_table</pre><p>and edit it :</p><pre>Schema::create(&#39;blogs&#39;, function (Blueprint $table) {<br>    $table-&gt;id();<br>    $table-&gt;string(&#39;slug&#39;);<br>    $table-&gt;string(&#39;title&#39;);<br>    $table-&gt;text(&#39;body&#39;)-&gt;nullable();<br>    $table-&gt;timestamps();<br>});</pre><blockquote><em>Create a model</em></blockquote><p>First, create laravel model for your resource.</p><pre>php artisan make:model Blog</pre><p>add column to $fillable property in app\Models\Blog.php</p><pre>protected $fillable = [<br>    &#39;slug&#39;,<br>    &#39;title&#39;,<br>    &#39;body&#39;,<br>];</pre><blockquote><em>Create a resource</em></blockquote><p>To create a resource for the App\Models\Blog model:</p><pre>php artisan make:filament-resource Blog</pre><p>This will create several files in the app/Filament/Resources directory:</p><pre>.<br>+-- BlogResource.php<br>+-- BlogResource<br>|   +-- Pages<br>|   |   +-- CreateBlog.php<br>|   |   +-- EditBlog.php<br>|   |   +-- ListBlogs.php</pre><blockquote><em>Configure resource table</em></blockquote><p>Open app\Filament\Resources\BlogResource.php and edit table method :</p><pre>public static function table(Table $table): Table<br>{<br>    return $table<br>        -&gt;columns([<br>            TextColumn::make(&#39;title&#39;),<br>            TextColumn::make(&#39;slug&#39;),<br>        ])<br>        -&gt;filters([<br>            //<br>        ])<br>        -&gt;actions([<br>            Tables\Actions\EditAction::make(),<br>        ])<br>        -&gt;bulkActions([<br>            Tables\Actions\BulkActionGroup::make([<br>                Tables\Actions\DeleteBulkAction::make(),<br>            ]),<br>        ])<br>        -&gt;emptyStateActions([<br>            Tables\Actions\CreateAction::make(),<br>        ]);<br>}</pre><p>There we add a TextColumn, filament will automatically detect it according to the column name in the database table</p><p>Read about TextColumn <a href="https://filamentphp.com/docs/3.x/tables/columns/text">here</a></p><blockquote><em>Configure resource form</em></blockquote><p>Open app\Filament\Resources\BlogResource.php and edit form method :</p><pre>public static function form(Form $form): Form<br>{<br>    return $form<br>        -&gt;schema([<br>            TextInput::make(&#39;title&#39;),<br>            TextInput::make(&#39;slug&#39;),<br>            Textarea::make(&#39;body&#39;)<br>                -&gt;columnSpanFull()<br>                -&gt;rows(10)<br>        ]);<br>}</pre><blockquote><em>Run migration</em></blockquote><pre>php artisan migrate</pre><p>and finally, you have a CRUD feature for Blog Resource. Open admin/blogs in your browser</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89c6b514d5ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Filamentphp]]></title>
            <link>https://medium.com/@rupadana/install-filamentphp-0756503659b0?source=rss-40ade1033c1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0756503659b0</guid>
            <dc:creator><![CDATA[Rupadana]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 12:57:37 GMT</pubDate>
            <atom:updated>2024-03-03T12:57:37.607Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Requirements</em></blockquote><p>Filament requires the following to run:</p><ul><li>PHP 8.1+</li><li><a href="https://laravel.com/docs/10.x">Laravel v10.0+</a></li><li><a href="https://livewire.laravel.com/">Livewire v3.0+</a></li></ul><blockquote><em>Installation</em></blockquote><p>Install the Filament Panel Builder by running the following commands in your Laravel project directory:</p><pre>composer require filament/filament:&quot;^3.0-stable&quot; -W</pre><pre>php artisan filament:install --panels</pre><p>This will create and register a new <a href="https://laravel.com/docs/providers">Laravel service provider</a> called app/Providers/Filament/AdminPanelProvider.php.</p><blockquote><em>Migration</em></blockquote><p>Setup your database and run Migration</p><pre>php artisan migrate</pre><blockquote><em>Create a user</em></blockquote><p>You can create a new user account with the following command:</p><pre>php artisan make:filament-user</pre><p>Open /admin in your web browser, sign in, and start building your app!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0756503659b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Filamentphp?]]></title>
            <link>https://medium.com/@rupadana/what-is-filamentphp-10ed1177dab6?source=rss-40ade1033c1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/10ed1177dab6</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[filamentphp]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Rupadana]]></dc:creator>
            <pubDate>Sat, 02 Mar 2024 11:54:48 GMT</pubDate>
            <atom:updated>2024-03-02T11:54:48.126Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Basically, FilamentPHP requires laravel, make sure you understand <a href="https://laravel.com/">Laravel</a> before following this tutorial.</p><p><a href="https://filamentphp.com/">FilamentPHP</a> is an admin panel that can accelerate our process in developing web applications. By using FilamentPHP, we can easily create, read, update, and delete features with a user-friendly interface.</p><h3>Features</h3><p>There a lot Features in Filamentphp v3, like :</p><h3>Panel builder</h3><p>With the Panel builder feature, we can create more than one admin panel.</p><h3>Form builder</h3><p>With the form builder we can create forms without touching the Laravel blade and easly to use many fields.</p><h3>Table builder</h3><p>Build your beautiful table with Custom Filter, Single Action and Bulk Action.</p><h3>Notifications</h3><p>The Panel Builder uses the Notifications package to send messages to users.</p><h3>Actions</h3><p>In Filament, actions also handle “doing” something in your app. However, they are a bit different from traditional actions. They are designed to be used in the context of a user interface.</p><h3>Infolist builder</h3><p>Filament’s infolist package allows you to render a read-only list of data about a particular entity. It’s also used within other Filament packages, such as the Panel Builder for displaying app resources and relation managers, as well as for action modals. Learning the features of the Infolist Builder will be incredibly time-saving when both building your own custom Livewire applications and using Filament’s other packages.</p><h3>Widgets</h3><p>This guide is for using the Widgets package in a custom TALL Stack application (Tailwind, Alpine, Livewire, Laravel).</p><p>Don’t be confused, because we will discuss it further in the next article 😁.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10ed1177dab6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run Next.js 14 on docker]]></title>
            <link>https://medium.com/@rupadana/run-next-js-14-on-docker-78b170bdf859?source=rss-40ade1033c1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/78b170bdf859</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Rupadana]]></dc:creator>
            <pubDate>Fri, 01 Mar 2024 08:20:48 GMT</pubDate>
            <atom:updated>2024-03-01T08:22:03.719Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>In this post im using `next@14.3.12`, it maybe will be different method in the future.</p><h3><strong>Creating a Next.js app</strong></h3><p>In this post, we will work with a basic next js app generated when you run the command:</p><pre>npx create-next-app@latest nextjs-docker-app</pre><p>Run the development server using the command npm run dev which should give an output that the server is running on localhost:3000. When you open your browser on the provided URL.</p><h3><strong>Writing a Dockerfile</strong></h3><p>Docker, in a nutshell, allows developers to simply generate, distribute, and deploy images, resulting in faster development cycles and simpler application management.</p><p>With that stated, let’s create a file named, `Dockerfile` in our root directory and paste the following content within it.</p><pre>FROM node:18-alpine as builder<br>WORKDIR /my-space<br>COPY package.json package-lock.json ./<br>RUN npm ci<br>COPY . .<br>RUN npm run build<br>FROM node:18-alpine as runner<br>WORKDIR /my-space<br>COPY - from=builder /my-space/package.json .<br>COPY - from=builder /my-space/package-lock.json .<br>COPY - from=builder /my-space/next.config.js ./<br>COPY - from=builder /my-space/public ./public<br>COPY - from=builder /my-space/.next/standalone ./<br>COPY - from=builder /my-space/.next/static ./.next/static<br>EXPOSE 3000<br>ENTRYPOINT [&quot;npm&quot;, &quot;start&quot;]</pre><h3><strong>Optimize Nextjs for Production</strong></h3><p>## Edit next.config.js</p><p>Edit your `next.config.js`, it will be generate `.next/standalone`.</p><p>During `next build`, Next.js will use [<a href="http://twitter.com/vercel/nft">@vercel/nft</a>](<a href="https://github.com/vercel/nft">https://github.com/vercel/nft</a>) to statically analyze `import`, `require`, and `fs` usage to determine all files that a page might load.</p><p>Next.js’ production server is also traced for its needed files and output at `.next/next-server.js.nft.json` which can be leveraged in production.</p><p>To leverage the `.nft.json` files emitted to the `.next` output directory, you can read the list of files in each trace that are relative to the `.nft.json` file and then copy them to your deployment location.</p><pre>const nextConfig = {<br> output: &#39;standalone&#39;,<br>}</pre><p>## Add `sharp` module</p><pre>npm i sharp</pre><pre>yarn add sharp</pre><pre>pnpm add sharp</pre><pre>bun add sharp</pre><p>## Update `start` script</p><p>To optimize image size, in the `standalone` directory do not install the `next` module, and we cannot run `next start`. We have to run it using `node`.</p><p>update your `package.json`</p><pre>{<br> &quot;scripts&quot; : {<br> &quot;start&quot;: &quot;node server.js&quot;,<br> }<br>}</pre><h3><strong>Build Docker Images</strong></h3><pre>docker build -t rupadana/rupadana.com ./</pre><h3><strong>Run app</strong></h3><pre>docker run -d -p 3000:3000 rupadana/rupadana.com</pre><p>Finally, it will be hosted on <a href="http://localhost:3000/">http://localhost:3000</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78b170bdf859" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>