<?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 Alagie Singhateh on Medium]]></title>
        <description><![CDATA[Stories by Alagie Singhateh on Medium]]></description>
        <link>https://medium.com/@jambasangsang?source=rss-a22435d581a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*prgCYpB8v6rAE-4j</url>
            <title>Stories by Alagie Singhateh on Medium</title>
            <link>https://medium.com/@jambasangsang?source=rss-a22435d581a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:05:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jambasangsang/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[Laravel Partition and Reject Methods with Examples]]></title>
            <link>https://jambasangsang.medium.com/laravel-partition-and-reject-methods-with-examples-4cb3eceeb7e6?source=rss-a22435d581a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cb3eceeb7e6</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <dc:creator><![CDATA[Alagie Singhateh]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 14:21:22 GMT</pubDate>
            <atom:updated>2022-12-31T14:25:22.983Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*-h2q7zVF39GKMSrgber3pQ.png" /></figure><p>I. Introduction</p><ul><li>Brief overview of Laravel and its capabilities as a PHP framework</li><li>Mention the purpose of partition and reject methods in Laravel</li></ul><p>II. What is the partition method in Laravel?</p><ul><li>Definition and explanation of the partition method</li><li>Example of using the partition method to divide a collection into two arrays based on a given condition</li><li>Output of the partition method with an example collection</li></ul><p>III. What is the reject method in Laravel?</p><ul><li>Definition and explanation of the reject method</li><li>Example of using the reject method to remove certain items from a collection based on a given condition</li><li>Output of the reject method with an example collection</li></ul><p>IV. Combining the partition and reject methods</p><ul><li>Example of using both the partition and reject methods in a single operation</li><li>Output of combining the partition and reject methods with an example collection</li></ul><p>V. Additional considerations</p><ul><li>Possible limitations or challenges when using the partition and reject methods</li><li>Tips for optimizing the use of these methods in Laravel projects</li></ul><p>VI. Conclusion</p><ul><li>Recap of the main points discussed in the post</li><li>Final thoughts on the utility and importance of the partition and reject methods in Laravel development.</li></ul><p>I. Introduction</p><ul><li>Laravel is a popular open-source PHP framework that has become a go-to choice for many developers because of its elegant syntax and robust features. One of the features that Laravel offers is the ability to manipulate collections of data using various methods, including the partition and reject methods.</li><li>In this blog post, we will explore what the partition and reject methods are, how they work, and how to use them with examples and outputs. By the end of this post, you should have a clear understanding of these methods and how to apply them in your Laravel projects.</li></ul><p>II. What is the partition method in Laravel?</p><ul><li>The partition method is a way to divide a collection into two separate arrays based on a given condition. For example, you might want to partition a collection of users into two arrays: one for users with an admin role, and one for users with a regular role.</li><li>To use the partition method, you would pass a callback function as an argument, which defines the condition that will be used to determine which items go into which array. The callback function should return a boolean value, indicating whether or not the item should be placed in the first array (true) or the second array (false).</li><li>Here is an example of using the partition method with a collection of users:</li></ul><pre>$users = User::all();<br>$partitioned = $users-&gt;partition(function($user) {<br>    return $user-&gt;isAdmin();<br>});</pre><ul><li>In this example, the partition method will iterate over the collection of users and pass each user to the callback function. If the user has an admin role (as determined by the isAdmin() method), they will be placed in the first array. If not, they will be placed in the second array.</li><li>The output of the partition method in this case would be a multidimensional array, with the first element being an array of admin users and the second element being an array of non-admin users. For example:</li></ul><pre>[<br>    [<br>        User {<br>            id: 1,<br>            name: &#39;Alagie Singhateh&#39;,<br>            role: &#39;admin&#39;<br>        },<br>        User {<br>            id: 4,<br>            name: &#39;Lamin Gitteh&#39;,<br>            role: &#39;admin&#39;<br>        }<br>    ],<br>    [<br>        User {<br>            id: 2,<br>            name: &#39;Ousman Jallow&#39;,<br>            role: &#39;user&#39;<br>        },<br>        User {<br>            id: 3,<br>            name: &#39;Ramatoulie Sonko&#39;,<br>            role: &#39;user&#39;<br>        }<br>    ]<br>]</pre><p>III. What is the reject method in Laravel?</p><ul><li>The reject method is similar to the partition method, but instead of dividing a collection into two arrays, it removes certain items from the collection based on a given condition. This can be useful when you want to filter out certain elements from a collection and only keep the ones that meet a specific criteria.</li><li>Like the partition method, the reject method takes a callback function as an argument, which defines the condition used to determine which items should be removed. The callback function should return a boolean value, indicating whether or not the item should be kept (true) or removed (false).</li><li>Here is an example of using the reject method with a collection of users:</li></ul><pre>$users = User::all();<br>$filtered = $users-&gt;reject(function($user) {<br>    return $user-&gt;isBanned();<br>});</pre><ul><li>In this example, the reject method will iterate over the collection of</li></ul><p>users and pass each user to the callback function. If the user is banned (as determined by the isBanned() method), they will be removed from the collection. If not, they will be kept in the collection.</p><ul><li>The output of the reject method in this case would be a collection of users that are not banned. For example:</li></ul><pre>[<br>    User {<br>        id: 1,<br>        name: &#39;Alagie Singhateh&#39;,<br>        role: &#39;admin&#39;,<br>        banned: false<br>    },<br>    User {<br>        id: 2,<br>        name: &#39;Ousman Jallow&#39;,<br>        role: &#39;user&#39;,<br>        banned: false<br>    },<br>    User {<br>        id: 3,<br>        name: &#39;Ramatoulie Sonko&#39;,<br>        role: &#39;user&#39;,<br>        banned: false<br>    }<br>]</pre><p>IV. Combining the partition and reject methods</p><ul><li>It is possible to use both the partition and reject methods in a single operation to divide a collection into separate arrays and remove certain items from each array. For example, you might want to partition a collection of users by role (admin or non-admin) and then reject any banned users from each array. Here is an example of combining the partition and reject methods:</li></ul><pre>$users = User::all();<br>$partitioned = $users-&gt;partition(function($user) {<br>    return $user-&gt;isAdmin();<br>});<br><br>$filteredAdmins = $partitioned[0]-&gt;reject(function($user) {<br>    return $user-&gt;isBanned();<br>});<br><br>$filteredNonAdmins = $partitioned[1]-&gt;reject(function($user) {<br>    return $user-&gt;isBanned();<br>});</pre><ul><li>In this example, the partition method is used to divide the collection of users into two arrays based on their role (admin or non-admin). Then, the reject method is used on each of these arrays to remove any banned users.</li><li>The output of this operation would be two separate arrays: one containing non-banned admin users, and one containing non-banned non-admin users. For example:</li></ul><pre>[<br>    [<br>        User {<br>            id: 1,<br>            name: &#39;Alagie Singhateh&#39;,<br>            role: &#39;admin&#39;,<br>            banned: false<br>        }<br>    ],<br>    [<br>        User {<br>            id: 2,<br>            name: &#39;Ousman Jallow&#39;,<br>            role: &#39;user&#39;,<br>            banned: false<br>        },<br>        User {<br>            id: 3,<br>            name: &#39;Ramatoulie Sonko&#39;,<br>            role: &#39;user&#39;,<br>            banned: false<br>        }<br>    ]<br>]</pre><p>V. Additional considerations</p><ul><li>While the partition and reject methods can be very useful in certain situations, there are a few things to keep in mind when using them.</li><li>One limitation is that these methods can be slower than other methods of filtering or manipulating collections, as they require iterating over the entire collection and applying the callback function to each item. If performance is a concern, you may want to consider using other methods or strategies to filter or partition your collections.</li><li>Additionally, it can be easy to get carried away with chaining multiple partition and reject operations together, which can result in complex and hard-to-read code. It’s important to keep things simple and avoid overusing these methods.</li></ul><p>VI. Conclusion</p><ul><li>In conclusion, the partition and reject methods in Laravel provide an easy way to divide and filter collections of data based on specific conditions. By understanding how these methods work and how to use them effectively, you can leverage their power to streamline your development process and create more efficient and effective applications.</li><li>While these methods can be slower than some other options, they can be very useful in certain situations and are easy to implement. Just make sure to consider performance and keep your code clean and readable when using the partition and reject methods in your Laravel projects.</li></ul><p>Thank you for reading this article.</p><p>Please follow us for more valuable articles like this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cb3eceeb7e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Validation in Laravel with Examples]]></title>
            <link>https://jambasangsang.medium.com/custom-validation-in-laravel-with-examples-574a9fc1eedd?source=rss-a22435d581a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/574a9fc1eedd</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[validation-rule]]></category>
            <category><![CDATA[custom-validation-rule]]></category>
            <category><![CDATA[custom-laravel]]></category>
            <dc:creator><![CDATA[Alagie Singhateh]]></dc:creator>
            <pubDate>Fri, 30 Dec 2022 23:07:43 GMT</pubDate>
            <atom:updated>2022-12-30T23:07:43.761Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3IkmgxWf5YWidF8NOYbBg.jpeg" /></figure><p>In Laravel, you can use custom validation rules to add additional logic to your application’s validation process. You can use custom validation rules in Laravel 9 by defining a rule using a <strong>Closure</strong> in the $rules array of your form request or by using a custom validator class.</p><p>Here’s an example of how you might define a custom validation rule using a <strong>Closure</strong> in a form request:</p><pre>namespace App\Http\Requests;<br><br>use Illuminate\Foundation\Http\FormRequest;<br><br>class StoreBlogPost extends FormRequest<br>{<br>    public function authorize()<br>    {<br>        return true;<br>    }<br><br>    public function rules()<br>    {<br>        return [<br>            &#39;title&#39; =&gt; &#39;required|unique:posts|max:255&#39;,<br>            &#39;body&#39; =&gt; &#39;required&#39;,<br>            &#39;publish_date&#39; =&gt; &#39;required|date&#39;,<br>            &#39;custom_field&#39; =&gt; [&#39;required&#39;, function ($attribute, $value, $fail) {<br>                if ($value !== &#39;xxx&#39;) {<br>                    $fail($attribute.&#39; is invalid.&#39;);<br>                }<br>            }],<br>        ];<br>    }<br>}</pre><p>In this example, the custom_field attribute is required and must also pass the custom validation rule defined by the Closure. If the value of custom_field is not equal to &#39;xxx&#39;, the validation will fail, and the $fail method will be called, which will add an error message to the validation error bag.</p><p>You can also define custom validation rules using a custom validator class. To do this, you will need to create a class that implements the Illuminate\Contracts\Validation\Rule interface and define apasses method that returns a boolean indicating whether the validation should pass or fail. Here&#39;s an example of a custom validator class:</p><pre>namespace App\Rules;<br><br>use Illuminate\Contracts\Validation\Rule;<br><br>class CustomRule implements Rule<br>{<br>    public function passes($attribute, $value)<br>    {<br>        return $value === &#39;abc&#39;;<br>    }<br><br>    public function message()<br>    {<br>        return &#39;The :attribute is invalid.&#39;;<br>    }<br>}</pre><p>To use this custom validator class in your form request, you can add it to the $rules array like this:</p><pre>&#39;custom_field&#39; =&gt; [&#39;required&#39;, new \App\Rules\CustomRule],</pre><p>You can also use custom validation rules in your controller actions by using the Validator facade. Here&#39;s an example of how you might use a custom validation rule in a controller action:</p><pre>use Validator;<br><br>public function store(Request $request)<br>{<br>    $validator = Validator::make($request-&gt;all(), [<br>        &#39;title&#39; =&gt; &#39;required|unique:posts|max:255&#39;,<br>        &#39;body&#39; =&gt; &#39;required&#39;,<br>        &#39;publish_date&#39; =&gt; &#39;required|date&#39;,<br>        &#39;custom_field&#39; =&gt; [&#39;required&#39;, new \App\Rules\CustomRule],<br>    ]);<br><br>    if ($validator-&gt;fails()) {<br>        return redirect(&#39;post/create&#39;)<br>                    -&gt;withErrors($validator)<br>                    -&gt;withInput();<br>    }<br><br>// Write and publish the blog post...<br>}</pre><p>Here are a few more examples of how you might use custom validation rules. Laravel is brings you lot more ways to use your own custom validation:</p><h3>Defining a custom validation rule using a Closure in a form request</h3><pre>public function rules()<br>{<br>    return [<br>        &#39;email&#39; =&gt; [&#39;required&#39;, &#39;email&#39;, function ($attribute, $value, $fail) {<br>            if (User::where(&#39;email&#39;, $value)-&gt;exists()) {<br>                $fail(&#39;The email has already been taken.&#39;);<br>            }<br>        }],<br>    ];<br>}</pre><p>In this example, the email attribute is required and must also be a valid email address. Additionally, the custom validation rule defined by the Closure checks if there is already a user with the same email address in the database, and if there is, the validation will fail.</p><h3>Using a custom validator class to validate an array of values</h3><pre>namespace App\Rules;<br><br>use Illuminate\Contracts\Validation\Rule;<br><br>class UniqueInArrayRule implements Rule<br>{<br>    protected $field;<br><br>    public function __construct($field)<br>    {<br>        $this-&gt;field = $field;<br>    }<br><br>    public function passes($attribute, $value)<br>    {<br>        return collect($value)-&gt;pluck($this-&gt;field)-&gt;unique()-&gt;count() === count($value);<br>    }<br><br>    public function message()<br>    {<br>        return &#39;The :attribute must contain unique values.&#39;;<br>    }<br>}</pre><p>This custom validator class can be used to ensure that all the values in an array are unique based on a specified field. To use it, you can add it to the $rules array like this:</p><pre>&#39;emails&#39; =&gt; [&#39;required&#39;, new \App\Rules\UniqueInArrayRule(&#39;email&#39;)],</pre><h3>Using a custom validation rule in a controller action</h3><pre>use Validator;<br><br>public function store(Request $request)<br>{<br>    $validator = Validator::make($request-&gt;all(), [<br>        &#39;name&#39; =&gt; &#39;required|unique:users|max:255&#39;,<br>        &#39;age&#39; =&gt; [&#39;required&#39;, &#39;numeric&#39;, function ($attribute, $value, $fail) {<br>            if ($value &lt; 18) {<br>                $fail(&#39;You must be at least 18 years old to register.&#39;);<br>            }<br>        }],<br>    ]);<br><br>    if ($validator-&gt;fails()) {<br>        return redirect(&#39;register&#39;)<br>                    -&gt;withErrors($validator)<br>                    -&gt;withInput();<br>    }<br><br>//Make and save a user...<br>}</pre><p>In this example, the age attribute is required, must be a numeric value, and must also pass the custom validation rule defined by the Closure. If the value of age is less than 18, the validation will fail.</p><p>I hope these examples help you understand how to use custom validation rules in Laravel! Let me know if you have any more questions.</p><h3>Validating an image file size</h3><pre>public function rules()<br>{<br>    return [<br>        &#39;image&#39; =&gt; [&#39;required&#39;, &#39;image&#39;, function ($attribute, $value, $fail) {<br>            if ($value-&gt;getSize() &gt; 500000) {<br>                $fail(&#39;The image must be less than 500KB.&#39;);<br>            }<br>        }],<br>    ];<br>}</pre><p>In this example, the image attribute is required and must also be an image file. The custom validation rule defined by the Closure checks the size of the image file, and if it is larger than 500KB, the validation will fail.</p><h3>Validating a password strength</h3><pre>public function rules()<br>{<br>    return [<br>        &#39;password&#39; =&gt; [&#39;required&#39;, function ($attribute, $value, $fail) {<br>            if (!preg_match(&#39;/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/&#39;, $value)) {<br>                $fail(&#39;The password must contain at least one lowercase letter, one uppercase letter, and one digit.&#39;);<br>            }<br>        }],<br>    ];<br>}</pre><p>In this example, the password attribute is required and must also pass the custom validation rule defined by the Closure. The validation rule uses a regular expression to ensure that the password contains at least one lowercase letter, one uppercase letter, and one digit.</p><h3>Validating a date range</h3><pre>public function rules()<br>{<br>    return [<br>        &#39;start_date&#39; =&gt; &#39;required|date&#39;,<br>        &#39;end_date&#39; =&gt; [&#39;required&#39;, &#39;date&#39;, function ($attribute, $value, $fail) {<br>            $startDate = $this-&gt;input(&#39;start_date&#39;);<br>            if ($value &lt; $startDate) {<br>                $fail(&#39;The end date must be after the start date.&#39;);<br>            }<br>        }],<br>    ];<br>}</pre><p>In this example, the start_date and end_date attributes are both required and must be valid dates. The custom validation rule defined by the Closure checks that the end_date is after the start_date.</p><p>I hope these examples give you some ideas for how you can use custom validation rules in your Laravel application.</p><p>Thank you for reading the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=574a9fc1eedd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Best ways to make money online in 2023]]></title>
            <link>https://jambasangsang.medium.com/10-best-ways-to-make-money-online-in-2023-9e8ce4f96dc8?source=rss-a22435d581a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e8ce4f96dc8</guid>
            <category><![CDATA[money-management]]></category>
            <category><![CDATA[making-money-on-medium]]></category>
            <category><![CDATA[how-to-make-money-online]]></category>
            <category><![CDATA[how-to-make-money]]></category>
            <category><![CDATA[how-to-lose-weight-fast]]></category>
            <dc:creator><![CDATA[Alagie Singhateh]]></dc:creator>
            <pubDate>Fri, 30 Dec 2022 21:00:44 GMT</pubDate>
            <atom:updated>2022-12-30T21:04:24.687Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*GDP_YYy1uRB8yA_un1FHjw.jpeg" /></figure><p>As the world becomes increasingly interconnected through the internet, more and more people are looking for ways to make money online. If you’re one of those people, you’re in luck! There are many ways to earn an income online in 2023 and beyond.</p><p>Here are a few ideas to get you started:</p><p>1. Sell products or services through an online store. Whether you’re a crafter, artist, or service provider, you can create an online store to sell your products or services. Popular platforms like Etsy, eBay, and Shopify make it easy to set up your own store and start selling</p><p>There are a few steps involved in setting up an online store:</p><p>1) Choose a platform: First, you’ll need to decide which platform you want to use to sell your products or services. Each platform has its own pros and cons, so consider your needs and do some research to find the best fit for you.</p><p>2) Set up your store: Once you’ve chosen a platform, you’ll need to set up your store. This typically involves creating a seller account, adding your products or services, and setting up payment and shipping options.</p><p>3) Promote your store: To get the word out about your store, you’ll need to promote it. This can involve using social media, email marketing, and other tactics to drive traffic to your store.</p><p>4) Manage your store: Once your store is up and running, you’ll need to manage it to ensure that it’s successful. This can involve fulfilling orders, interacting with customers, and continuously improving and updating your products or services.</p><p>Overall, setting up an online store is a great way to make money online, and platforms like Etsy, eBay, and Shopify make it easy to get started. With a little bit of effort and persistence, you can create a successful online store and start earning an income.</p><p>2. Offer freelance services. If you have a particular skill or area of expertise, you can offer your services as a freelancer. Sites like Upwork and Freelancer allow you to create a profile and bid on projects for clients around the world.</p><p>There are a few steps involved in becoming a successful freelancer:</p><p>1) Determine your area of expertise: First, you’ll need to decide what you want to offer as a freelancer. This might be a specific skill or service, such as writing, editing, design, or programming.</p><p>2) Set up a profile: Once you’ve decided what you want to offer, you’ll need to create a profile on a freelancing platform like Upwork or Freelancer. This typically involves adding a description of your services, your rates, and any relevant experience or qualifications.</p><p>3) Find and apply for projects: Once your profile is set up, you can start searching for and applying for projects that match your skills and interests. This may involve submitting a proposal, resume, and/or portfolio to potential clients.</p><p>4) Work with clients: Once you land a project, you’ll need to work with your client to complete the work to their satisfaction. This may involve communicating with them regularly, submitting progress updates, and making any necessary revisions.</p><p>Overall, freelancing is a great way to make money online and can be a flexible and rewarding career path. With a little bit of effort and persistence, you can build a successful freelance business and earn an income doing what you love.</p><p>3. Start a blog or YouTube channel. If you have a passion for writing or creating videos, you can start a blog or YouTube channel and monetize it through advertising, sponsorships, and affiliate marketing.</p><p>There are several ways to monetize your blog or YouTube channel, including:</p><p>1) Advertising: One way to make money through your blog or YouTube channel is by displaying ads. You can sign up for an ad network like Google AdSense and place ads on your site or channel. Whenever someone clicks on one of the ads, you’ll earn a small amount of money.</p><p>2) Sponsorships: Another way to monetize your blog or YouTube channel is by partnering with brands for sponsored content. This typically involves promoting a brand’s products or services in exchange for a fee or other compensation.</p><p>Affiliate marketing: Affiliate marketing involves promoting a product or service and earning a commission for each sale made through your referral. You can include affiliate links in your blog or YouTube channel and earn a percentage of each sale made through those links.</p><p>4) Selling products or services: In addition to monetizing your blog or YouTube channel through advertising and sponsorships, you can also sell your own products or services through your site or channel. This might include physical products, digital products, or services like consulting or coaching.</p><p>Overall, starting a blog or YouTube channel can be a great way to make money online. With a little bit of effort and persistence, you can build a successful blog or YouTube channel and monetize it through advertising, sponsorships, and affiliate marketing.</p><p>4. Invest in the stock market. If you have a little extra money to invest, you can consider putting it into the stock market. While there are risks involved, the stock market has historically provided solid returns over the long term.</p><p>Here are a few steps to consider if you’re interested in investing in the stock market:</p><p>1) Educate yourself: Before you start investing in the stock market, it’s important to learn as much as you can about how it works. This might involve reading books, taking online courses, or talking to a financial advisor.</p><p>2) Determine your investment goals: Next, you’ll need to decide what you want to achieve through your investments. Do you want to save for retirement, generate income, or grow your wealth over the long term? Your investment goals will help guide your investment decisions.</p><p>3) Choose an investment account: There are several types of investment accounts you can choose from, including traditional brokerage accounts, robo-advisors, and employer-sponsored retirement plans. Consider your needs and do some research to find the best fit for you.</p><p>4) Research and select investments: Once you have an investment account set up, you’ll need to research and select the investments you want to make. This might involve choosing individual stocks, mutual funds, or exchange-traded funds (ETFs).</p><p>5) Monitor and review your investments: It’s important to regularly monitor and review your investments to ensure that they are performing as expected and align with your investment goals. Consider consulting with a financial advisor or other professional if you have questions or concerns.</p><p>Overall, investing in the stock market can be a great way to make money over the long term. With a little bit of effort and due diligence, you can build a solid investment portfolio and achieve your financial goals.</p><p>5. Participate in paid online surveys. If you have some spare time on your hands and don’t mind sharing your opinions, you can make money by participating in paid online surveys. Sites like Survey Junkie and Swagbucks offer paid surveys that you can complete from the comfort of your own home.</p><p>Here are a few steps to consider if you’re interested in participating in paid online surveys:</p><p>1) Sign up for survey sites: To get started, you’ll need to sign up for one or more survey sites. Most sites are free to join, and you’ll typically need to provide some basic information about yourself, such as your age, gender, and location.</p><p>2) Complete your profile: Many survey sites will ask you to complete a profile to help them match you with surveys that are relevant to you. This might include information about your interests, hobbies, and purchasing habits.</p><p>3) Look for surveys: Once you’re signed up and your profile is complete, you can start looking for surveys to participate in. Most survey sites will send you email notifications when new surveys become available.</p><p>4) Complete the surveys: When you find a survey that you’re interested in, you’ll need to complete it to the best of your ability. This might involve answering questions, providing feedback, or completing tasks.</p><p>5) Get paid: Once you’ve completed a survey, you’ll typically be paid in points or cash. You can then redeem your points for rewards or cash out your earnings through a variety of payment methods.</p><p>Overall, participating in paid online surveys is a relatively easy way to make a little extra money online. While the pay for individual surveys may be modest, you can make a significant amount of money over time by participating in a variety of surveys.</p><p>6. Monetize your social media following. If you have a large following on social media platforms like Instagram or TikTok, you can monetize your influence by partnering with brands to promote their products or services. Many social media influencers earn a significant income through sponsored posts and brand partnerships.</p><p>Here are a few steps to consider if you’re interested in monetizing your social media following:</p><p>1) Build your following: To monetize your social media influence, you’ll need to have a large and engaged following. This might involve creating high-quality content, interacting with your followers, and using hashtags and other tactics to increase your visibility.</p><p>2) Partner with brands: Once you have a significant following, you can start reaching out to brands and offering to promote their products or services in exchange for a fee or other compensation. This might involve creating sponsored posts, hosting giveaways, or participating in influencer campaigns.</p><p>3) Negotiate terms: When you partner with a brand, you’ll need to negotiate the terms of your collaboration. This might include the fee you’ll be paid, the type of content you’ll create, and any other details of the partnership.</p><p>4) Create and post content: Once you’ve agreed on the terms of your collaboration, you’ll need to create and post the content you’ve agreed to produce. This might involve creating a sponsored post, creating a video, or hosting a live stream.</p><p>5) Disclose your partnerships: It’s important to disclose your partnerships with brands to your followers. This can help you maintain transparency and build trust with your audience.</p><p>Overall, monetizing your social media following is a great way to make money online, and there are many brands that are willing to pay influencers to promote their products or services. With a little bit of effort and persistence, you can build a successful influencer career and earn an income through sponsored posts and brand partnerships.</p><p>7. offer web design or development services. If you have experience in web design or development, you can offer your services to businesses or individuals looking to build or update their websites. This is a particularly in-demand skill, and you can charge a premium for your services.</p><p>Here are a few steps to consider if you’re interested in offering web design or development services:</p><p>1) Build your skills: To be successful as a web designer or developer, you’ll need to have a strong foundation of skills in your area of expertise. This might involve taking courses, learning on your own, or gaining experience through internships or entry-level jobs.</p><p>2) Create a portfolio: A portfolio is a collection of your best work that you can use to showcase your skills and capabilities to potential clients. You should include examples of websites you’ve designed or developed, as well as any relevant design or development skills you have.</p><p>3) Set up a website: Having your own website can be a great way to showcase your work and attract potential clients. You can use a platform like WordPress or Wix to create a simple website that showcases your portfolio and provides information about your services.</p><p>4) Market your services: To attract clients, you’ll need to market your services. This might involve using social media, networking, or reaching out to potential clients directly. You may also want to consider joining a freelancing platform like Upwork or Freelancer, which can help you find clients.</p><p>5) Work with clients: Once you start getting clients, you’ll need to work with them to understand their needs and deliver high-quality work. This may involve communicating with them regularly, meeting deadlines, and making any necessary revisions.</p><p>Overall, offering web design or development services is a great way to make money online, and there is high demand for these skills. With a little bit of effort and persistence, you can build a successful web design or development business and earn a good income.</p><p>8. Rent out a spare room on Airbnb. If you have a spare room in your home or apartment, you can earn extra income by renting it out on Airbnb. This is a great option for people who live in popular tourist destinations or major cities, as there is often high demand for short-term rentals.</p><p>Here are a few steps to consider if you’re interested in renting out a spare room on Airbnb:</p><p>1) Determine if it’s legal: Before you start renting out your spare room on Airbnb, it’s important to check if it’s legal in your area. Some cities and towns have laws or regulations that restrict short-term rentals, so you’ll need to make sure you’re in compliance.</p><p>2) Set up your listing: To start renting out your spare room on Airbnb, you’ll need to set up a listing on the platform. This involves creating a profile, adding a description of your space, and uploading photos. You’ll also need to set your rates and availability.</p><p>3) Prepare your space: To make your space attractive to renters, you’ll need to make sure it’s clean, well-maintained, and comfortable. This might involve making any necessary repairs, adding amenities like linens and towels, and making sure your space is well-decorated and welcoming.</p><p>4) Manage your bookings: Once you start getting bookings, you’ll need to manage them to make sure everything goes smoothly. This might involve communicating with guests, coordinating check-in and check-out, and handling any issues that may arise.</p><p>5) Review your guests: After each stay, you’ll have the opportunity to review your guests and rate their stay. This can help other hosts make informed decisions about hosting them in the future.</p><p>Overall, renting out a spare room on Airbnb is a great way to make extra income, and it can be a fun and rewarding experience. With a little bit of effort and attention to detail, you can create a successful Airbnb listing and earn an income from your spare room.</p><p>9. Sell your photos online. If you enjoy photography, you can sell your photos through online stock photography sites like Shutterstock and Adobe Stock. These sites allow you to upload your photos and earn a royalty every time one of your photos is purchased.</p><p>Here are a few steps to consider if you’re interested in selling your photos online:</p><p>1) Take high-quality photos: To sell your photos online, you’ll need to take high-quality photos that are in demand by buyers. This might involve taking photos of popular travel destinations, business settings, or people in a variety of settings.</p><p>2) Choose a stock photography site: There are many stock photography sites to choose from, each with its own terms and conditions. Consider the fees, royalty rates, and other terms before deciding which site is the best fit for you.</p><p>3) Create an account: Once you’ve chosen a stock photography site, you’ll need to create an account and upload your photos. Most sites have specific guidelines for file size, resolution, and other technical requirements, so make sure you follow them to ensure that your photos are accepted.</p><p>4) Tag and caption your photos: To make it easy for buyers to find your photos, you’ll need to tag and caption them appropriately. This might involve adding keywords, describing the content of the photo, and including any relevant information.</p><p>5) Monitor your sales: Once your photos are live on the site, you’ll be able to track your sales and see how well they’re performing. You can use this information to adjust your strategy and improve your sales.</p><p>Overall, selling your photos online through stock photography sites is a great way to make money if you enjoy photography. With a little bit of effort and persistence, you can build a successful business and earn a passive income from your photos.</p><p>10. Create and sell an online course. If you have expertise in a particular subject, you can create and sell an online course teaching others about that subject. Platforms like Udemy and Teachable make it easy to create and sell your own course, and you can earn passive income through course sales.</p><p>Yes, that’s correct! If you have expertise in a particular subject, you can create and sell an online course teaching others about that subject. Platforms like Udemy and Teachable make it easy to create and sell your own course, and you can earn passive income through course sales.</p><p>Here are a few steps to consider if you’re interested in creating and selling an online course:</p><p>1) Determine your subject: To create an online course, you’ll need to decide what you want to teach. This might be a skill or knowledge that you have, such as cooking, programming, or design.</p><p>2) Choose a platform: There are many platforms you can use to create and sell your online course, including Udemy, Teachable, and Coursera. Consider the features and fees of each platform to determine which one is the best fit for you.</p><p>3) Create your course: Once you’ve decided on a platform and subject, you’ll need to create your course. This might involve creating video lectures, writing course materials, and creating assignments and quizzes.</p><p>4) Market your course: To sell your course, you’ll need to market it to your target audience. This might involve using social media, email marketing, or paid advertising to reach potential students.</p><p>5) Monitor your sales: Once your course is live, you’ll be able to track your sales and see how well it’s performing. You can use this information to adjust your marketing strategy and improve your sales.</p><p>Overall, creating and selling an online course is a great way to make money online if you have expertise in a particular subject. With a little bit of effort and persistence, you can build a successful online course business and earn a passive income through course sales.</p><p>As you can see, there are many ways to make money online in 2023 and beyond. Whether you’re looking to sell products or services, invest in the stock market, or monetize your social media following, there are plenty of opportunities to earn an income online. With a little bit of effort and creativity, you can find a way to make money online that works for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e8ce4f96dc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOW TO COPY ANY WEBSITE IN 2021 LESS THAN 5 MINUTES FROM THE INTERNET TO YOUR COMPUTER]]></title>
            <link>https://jambasangsang.medium.com/how-to-copy-any-website-in-2021-less-than-5-minutes-from-the-internet-to-your-computer-92d032a92315?source=rss-a22435d581a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/92d032a92315</guid>
            <category><![CDATA[website-traffic]]></category>
            <category><![CDATA[how-to-make-money]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[how-to-start-blogging]]></category>
            <category><![CDATA[howard-stern]]></category>
            <dc:creator><![CDATA[Alagie Singhateh]]></dc:creator>
            <pubDate>Thu, 24 Jun 2021 13:12:11 GMT</pubDate>
            <atom:updated>2021-06-24T13:20:17.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lj551es_VlTPOdPJ6LDV4w.jpeg" /></figure><p>In this article, you will learn the 4 best easy tools that you can use for website trippers how to copy any website from the internet for free in less than 5 minutes. So, are you excited to see how to do that? Less than 5 minutes. <a href="http://jambasangsang.com/2021/06/24/how-to-copy-any-website-in-2021-less-than-5-minutes-from-the-internet-to-your-computer/">other valuable resources</a></p><p>Sometimes you might need to download the whole website for offline reading, maybe your internet doesn’t work and you want to save the websites or you just came across something for later reference no matter the reason is you need a website ripper software to download or get the partial or full website locally onto your hard drive for offline access. You can copy big websites like Amazon, Facebook, Twitter, and even Youtube.</p><p>WHAT IS A WEBSITE TRIPPER?</p><p>It’s easy to get the updated content from a website in real-time with an RSS feed. However, there is another way that would help you to get your favorite content at hand faster. A website tripper enables you to download an entire website and save it to your hard drive for browsing without any internet connection. There are three essential structures sequences, hierarchies, and webs that used to build a website. These structures would decide how the information is displayed and organized. <a href="http://jambasangsang.com/">More to know</a></p><p>I will show you the 4 best website tripper software in 2020, how to download them and install them on your computer one by one and how to use them to copy any website on the internet:</p><p>1 HTTrack</p><figure><img alt="Reference http://jambasangsang.com/2021/06/24/how-to-copy-any-website-in-2021-less-than-5-minutes-from-the-internet-to-your-computer/" src="https://cdn-images-1.medium.com/max/703/1*3LX1QQu9w-9QhQg0AQKA3w.jpeg" /></figure><p>HTTrack is a simple and powerful website tripper software. It can download the entire website from the internet to your computer. Start with the wizard and follow through with the setting. You can decide the number of connections concurrently while downloading web pages under the settings option. You are able to get the photos files, HTML code from the entire directories. Update current mirrored website and resume interrupted downloads. <a href="https://youtu.be/LM_nDtSLZmg?t=166">Installation Guides Tutorial</a></p><p>The downside of it is that cannot use to download a single page of the website instead it will download the entire route of the website. In addition, it takes a while to manually exclude the file types. If you just want to download particular ones. <a href="https://www.httrack.com/page/2/">Download Software</a></p><p>2 Cyotek WebCopy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*4jCy9THBEjY2HdC3plZU2Q.png" /></figure><p>Cyotek Webcopy is a website tripper copier that allows you to copy partial or full websites locally for offline reading. It will examine the structure of websites as well as the link resources including style sheets, images, videos, and more. Link resource will automatically remap to match its local path. <a href="https://youtu.be/LM_nDtSLZmg?t=253">Installation Guides Tutorial</a></p><p>The downside of it is that Cyotek WebCopy cant crawl scrapes websites that apply Java Script or any with dynamic functions. It cants scrape the raw source code of the website but only what it displays on the browser. <a href="https://www.cyotek.com/cyotek-webcopy/downloads">Download Software</a></p><p>3 Octoparse</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*3P1z8vid51YTkmYMYmTAkQ.png" /></figure><p>Octoparse is a simple and intuitive web crawler for date of extraction without coding. It can be used on both Windows and Mac OS systems. It suits the needs for web scraping on multiple types of devices whether you are a first-time self-starter, experienced expert, or business owner. It will satisfy your need with its enterprise-class service. To eliminate the difficulties of setting up and using, Octoparse ads web scraping templates covering over 30 websites for starters to get comfortable with the software. They allow users to capture the data without task configuration. <a href="https://youtu.be/LM_nDtSLZmg?t=380">Installation Guides Tutorial</a></p><p>For seasoned pros, Advanced Mode helps you customize a crawler within seconds with its smart auto-detection feature. With Octoparse, you are able to extract enterprise volume data within minutes besides, you can set up scheduled cloud extraction which enables you to obtain dynamic data in real-time and keep a tracking record. <a href="https://www.octoparse.com/download/windows">Download Software</a></p><p>4 Getleft</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*V0kK2ZVvMCQcVKDQ7Ie-zQ.jpeg" /></figure><p>Getleft is a free and easy-to-use website grabber that can be used to rip a website. It downloads an entire website with its easy-to-use interface and multiple options. After you launch Getleft, you can enter a URL and choose the files that should be downloaded before begin downloading the website. The minimum requirements are:</p><ul><li>Windows, not supported for Mac</li><li>5 MB of available hard disk space</li></ul><p><a href="https://youtu.be/LM_nDtSLZmg?t=459">InstallationGuides</a> Tutorials</p><p>How to use the application:</p><ul><li>Open the software/application</li><li>Copy any website URL you want and paste the URL to the application</li><li>It will take some time based on the file size and the internet connection</li></ul><p><a href="https://sourceforge.net/projects/getleftdown/">Download Software</a></p><p>You can also able to watch the video tutorial to see how I set it all in other <a href="https://youtu.be/LM_nDtSLZmg">Video Tutorial</a></p><p>Conclusion</p><p>Note that this article is for only educational purposes. therefore, you should not abuse the rules of the internet you can learn and apply them in a good way, in addition using these tools as spam you might end up in a situation that won’t suit you. the internet is full of learning materials that can be used essentially for education.</p><p><a href="http://jambasangsang.com/shop/">Related Articles you might like</a></p><p><a href="https://youtu.be/LM_nDtSLZmg">https://youtu.be/LM_nDtSLZmg</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92d032a92315" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel 8 Multi Authentication using Guards]]></title>
            <link>https://jambasangsang.medium.com/laravel-8-multi-authentication-using-guards-f1db629ab1dd?source=rss-a22435d581a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1db629ab1dd</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php-developers]]></category>
            <dc:creator><![CDATA[Alagie Singhateh]]></dc:creator>
            <pubDate>Wed, 23 Jun 2021 21:15:10 GMT</pubDate>
            <atom:updated>2021-06-23T21:15:10.759Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://jambasangsang.com/2021/06/16/laravel-8-multi-auth-with-guard-no-package-needed/">Click to learn more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbfvm7JtyRLz4susBifexg.jpeg" /></figure><p>Hello guys, in this article we will learn how to create a multi Auth guard with Laravel 8, So let me explain why should you use a multi auth guard in Laravel. Because if you are using an application like school management which has many roles so you wanted each role to see the different dashboard, but you don’t want to add gates or policies, here is we can use guards to prevent each of the users. <a href="https://jambasangsang.com/2021/06/16/laravel-8-multi-auth-with-guard-no-package-needed/">Click this</a></p><p>For example: if your system is having <strong>( Admin, Staff, and Normal Users ) </strong>and you wanted all of them to use the different login forms. this method will help you to achieve that. <a href="https://jambasangsang.com/2021/06/16/laravel-8-multi-auth-with-guard-no-package-needed/">Click this</a></p><h3>STEP 1. CREATE A NEW LARAVEL 8 PROJECT</h3><p>So here we will create our new Laravel 8 project by using the below command, you can copy the below command and paste it into your terminal to create a new project.</p><pre>composer create-project --prefer-dist laravel/laravel laravel-8-multi-auth</pre><h4>STEP 2. INSTALLING LARAVEL START-UP KIT</h4><p>You can use any of the laravel 8 start-up kits, but in this tutorial, I will be using <a href="https://github.com/laravel/ui"><strong>Laravel UI</strong></a></p><p><strong>Run</strong> the below command to install Laravel UI</p><pre>composer require laravel/ui</pre><p><strong>Run</strong> to generate Auth</p><pre>php artisan ui bootstrap --auth</pre><pre>npm install</pre><pre>npm run dev</pre><h4>STEP 3. CREATING A DATABASE AND CONFIGURATION</h4><p>In this step, we will create a database you can use any type of database providers after creating the database we will need to configure the database credentials inside our <strong>.ENV FILE</strong></p><pre>DB_CONNECTION=mysql<br>DB_HOST=127.0.0.1<br>DB_PORT=3306<br>DB_DATABASE= laravel_multi_auth <br>DB_USERNAME= root<br>DB_PASSWORD=</pre><h4>STEP 4. CREATING TWO MODEL ( ADMIN &amp; STAFF )</h4><p>By default laravel come with a user model, so we will use that as a reference to the two models we are about to create. note: in the user model there is a trait called <strong>authenticable</strong> so we will use that built-in authenticable feature in this tutorial.</p><p><strong>Run </strong>the below command to create the two models along with migrations and controllers</p><pre>php artisan make:model Admin -mrc</pre><pre>php artisan make:model Staff -mrc</pre><h4>STEP 5. SET UP THE TWO MIGRATION FILES</h4><p>The migration file will be similar to the user migration file so what we will do, we will copy all the fields inside the user migration file and paste it inside each of the two migrations which are <strong>Admin and Staff</strong> migrations.</p><p>So the output will just like the below example code.</p><p><strong>USER MIGRATION FILE</strong></p><pre>&lt;?php</pre><pre>use Illuminate\Database\Migrations\Migration;<br>use Illuminate\Database\Schema\Blueprint;<br>use Illuminate\Support\Facades\Schema;</pre><pre>class CreateUsersTable extends Migration<br>{<br>    /**<br>     * Run the migrations.<br>     *<br>     * @return void<br>     */<br>    public function up()<br>    {<br>        Schema::create(&#39;users&#39;, function (Blueprint $table) {<br>            $table-&gt;id(&#39;id&#39;); <br>            $table-&gt;string(&#39;name&#39;);<br>            $table-&gt;string(&#39;email&#39;)-&gt;unique();<br>            $table-&gt;timestamp(&#39;email_verified_at&#39;)-&gt;nullable();<br>            $table-&gt;string(&#39;password&#39;);<br>            $table-&gt;rememberToken();<br>            $table-&gt;timestamps();<br>            $table-&gt;softDeletes();<br>        });<br>    }</pre><pre>    /**<br>     * Reverse the migrations.<br>     *<br>     * @return void<br>     */<br>    public function down()<br>    {<br>        Schema::dropIfExists(&#39;users&#39;);<br>    }<br>}</pre><p><strong>ADMIN MIGRATION FILE — </strong>note: we will add one new field to the admin model.</p><pre>&lt;?php</pre><pre>use Illuminate\Database\Migrations\Migration;<br>use Illuminate\Database\Schema\Blueprint;<br>use Illuminate\Support\Facades\Schema;</pre><pre>class CreateAdminsTable extends Migration<br>{<br>    /**<br>     * Run the migrations.<br>     *<br>     * @return void<br>     */<br>    public function up()<br>    {<br>        Schema::create(&#39;admins&#39;, function (Blueprint $table) {<br>            $table-&gt;id(&#39;id&#39;); <br>            $table-&gt;string(&#39;name&#39;);<br>            $table-&gt;string(&#39;email&#39;)-&gt;unique();<br>            $table-&gt;timestamp(&#39;email_verified_at&#39;)-&gt;nullable();<br>            $table-&gt;string(&#39;password&#39;);<br>            $table-&gt;tinyinteger(&#39;status&#39;)-&gt;default(0);<br>            $table-&gt;rememberToken();<br>            $table-&gt;timestamps();<br>            $table-&gt;softDeletes();<br>        });<br>    }</pre><pre>    /**<br>     * Reverse the migrations.<br>     *<br>     * @return void<br>     */<br>    public function down()<br>    {<br>        Schema::dropIfExists(&#39;admins&#39;);<br>    }<br>}</pre><p><strong>STAFF MIGRATION FILE — </strong>note: we will add one new field to the staff model.</p><pre>&lt;?php</pre><pre>use Illuminate\Database\Migrations\Migration;<br>use Illuminate\Database\Schema\Blueprint;<br>use Illuminate\Support\Facades\Schema;</pre><pre>class CreateStaffsTable extends Migration<br>{<br>    /**<br>     * Run the migrations.<br>     *<br>     * @return void<br>     */<br>    public function up()<br>    {<br>        Schema::create(&#39;staffs&#39;, function (Blueprint $table) {<br>            $table-&gt;id(&#39;id&#39;); <br>            $table-&gt;string(&#39;name&#39;);<br>            $table-&gt;string(&#39;email&#39;)-&gt;unique();<br>            $table-&gt;timestamp(&#39;email_verified_at&#39;)-&gt;nullable();<br>            $table-&gt;string(&#39;password&#39;);<br>            $table-&gt;tinyinteger(&#39;status&#39;)-&gt;default(0);<br>            $table-&gt;rememberToken();<br>            $table-&gt;timestamps();<br>            $table-&gt;softDeletes();<br>        });<br>    }</pre><pre>    /**<br>     * Reverse the migrations.<br>     *<br>     * @return void<br>     */<br>    public function down()<br>    {<br>        Schema::dropIfExists(&#39;staffs&#39;);<br>    }<br>}</pre><h4>STEP 6. RUNNING MIGRATION</h4><p>Now I will run the migration command to migrate our table inside the database I created.</p><p><strong>Run </strong>the below command to migrate the fields.</p><pre>php artisan migrate</pre><h4>STEP 7. SET UP MODEL SETTINGS</h4><p>So we need to open the user model as I mentioned above and copy all that is inside the model because the models will be somehow similar to each other, copy the below code snippet, and paste it inside the admin and staff model.</p><pre>&lt;?php</pre><pre>namespace App\Models;</pre><pre>use Illuminate\Notifications\Notifiable;<br>use Illuminate\Contracts\Queue\ShouldQueue;<br>use Illuminate\Database\Eloquent\SoftDeletes;<br>use Illuminate\Contracts\Auth\MustVerifyEmail;<br>use Illuminate\Database\Eloquent\Factories\HasFactory;<br>use Illuminate\Foundation\Auth\User as Authenticatable;</pre><pre>class User extends Authenticatable implements MustVerifyEmail, ShouldQueue<br>{<br>    use HasFactory, Notifiable, SoftDeletes;<br>    /**<br>     * The attributes that are mass assignable.<br>     *<br>     * @var array<br>     */<br>    protected $fillable = [<br>        &#39;name&#39;,<br>        &#39;email&#39;,<br>        &#39;password&#39;,<br>        &#39;phone&#39;,<br>    ];<br></pre><pre>    /**<br>     * The attributes that should be hidden for arrays.<br>     *<br>     * @var array<br>     */<br>    protected $hidden = [<br>        &#39;password&#39;,<br>        &#39;remember_token&#39;,<br>    ];</pre><pre>    /**<br>     * The attributes that should be cast to native types.<br>     *<br>     * @var array<br>     */<br>    protected $casts = [<br>        &#39;email_verified_at&#39; =&gt; &#39;datetime&#39;,<br>    ];</pre><pre>}</pre><p><strong>ADMIN MODEL </strong>— Note: inside each model has a trait called <strong>Authenticatable</strong></p><pre>&lt;?php</pre><pre>namespace App\Models;</pre><pre>use Illuminate\Notifications\Notifiable;<br>use Illuminate\Contracts\Queue\ShouldQueue;<br>use Illuminate\Database\Eloquent\SoftDeletes;<br>use Illuminate\Contracts\Auth\MustVerifyEmail;<br>use Illuminate\Database\Eloquent\Factories\HasFactory;<br>use Illuminate\Foundation\Auth\User as Authenticatable;</pre><pre>class Admin extends Authenticatable implements MustVerifyEmail, ShouldQueue<br>{<br>    use HasFactory, Notifiable, SoftDeletes;<br>    /**<br>     * The attributes that are mass assignable.<br>     *<br>     * @var array<br>     */<br>    protected $fillable = [<br>        &#39;name&#39;,<br>        &#39;email&#39;,<br>        &#39;password&#39;,<br>        &#39;phone&#39;,<br>        &#39;status&#39;,<br>    ];<br></pre><pre>    /**<br>     * The attributes that should be hidden for arrays.<br>     *<br>     * @var array<br>     */<br>    protected $hidden = [<br>        &#39;password&#39;,<br>        &#39;remember_token&#39;,<br>    ];</pre><pre>    /**<br>     * The attributes that should be cast to native types.<br>     *<br>     * @var array<br>     */<br>    protected $casts = [<br>        &#39;email_verified_at&#39; =&gt; &#39;datetime&#39;,<br>    ];</pre><pre>}</pre><p><strong>STAFF MODEL </strong>— Note: inside each model has a trait called <strong>Authenticatable</strong></p><pre>&lt;?php</pre><pre>namespace App\Models;</pre><pre>use Illuminate\Notifications\Notifiable;<br>use Illuminate\Contracts\Queue\ShouldQueue;<br>use Illuminate\Database\Eloquent\SoftDeletes;<br>use Illuminate\Contracts\Auth\MustVerifyEmail;<br>use Illuminate\Database\Eloquent\Factories\HasFactory;<br>use Illuminate\Foundation\Auth\User as Authenticatable;</pre><pre>class Staff extends Authenticatable implements MustVerifyEmail, ShouldQueue<br>{<br>    use HasFactory, Notifiable, SoftDeletes;<br>    /**<br>     * The attributes that are mass assignable.<br>     *<br>     * @var array<br>     */<br>    protected $fillable = [<br>        &#39;name&#39;,<br>        &#39;email&#39;,<br>        &#39;password&#39;,<br>        &#39;phone&#39;,<br>        &#39;status&#39;,<br>    ];<br></pre><pre>    /**<br>     * The attributes that should be hidden for arrays.<br>     *<br>     * @var array<br>     */<br>    protected $hidden = [<br>        &#39;password&#39;,<br>        &#39;remember_token&#39;,<br>    ];</pre><pre>    /**<br>     * The attributes that should be cast to native types.<br>     *<br>     * @var array<br>     */<br>    protected $casts = [<br>        &#39;email_verified_at&#39; =&gt; &#39;datetime&#39;,<br>    ];</pre><pre>}</pre><h4>STEP 8. SET UP AUTH GUARDS</h4><p>Inside the <strong>config/auth.php </strong>we need to add few configurations so that we can able to work with our custom guards. by default in laravel web is a default guard for all the authentication that will be made if there is no other guard defined. so we will define our two custom guards which are the <strong>admin guard</strong> and <strong>staff guard.</strong></p><p>Copy and paste the below code to your app.</p><p><strong>Config/Auth.php</strong></p><pre>&lt;?php</pre><pre>return [</pre><pre>    /*<br>    |--------------------------------------------------------------------------<br>    | Authentication Defaults<br>    |--------------------------------------------------------------------------<br>    |<br>    | This option controls the default authentication &quot;guard&quot; and password<br>    | reset options for your application. You may change these defaults<br>    | as required, but they&#39;re a perfect start for most applications.<br>    |<br>    */</pre><pre>    &#39;defaults&#39; =&gt; [<br>        &#39;guard&#39; =&gt; &#39;web&#39;,<br>        &#39;passwords&#39; =&gt; &#39;users&#39;,<br>    ],</pre><pre>    /*<br>    |--------------------------------------------------------------------------<br>    | Authentication Guards<br>    |--------------------------------------------------------------------------<br>    |<br>    | Next, you may define every authentication guard for your application.<br>    | Of course, a great default configuration has been defined for you<br>    | here which uses session storage and the Eloquent user provider.<br>    |<br>    | All authentication drivers have a user provider. This defines how the<br>    | users are actually retrieved out of your database or other storage<br>    | mechanisms used by this application to persist your user&#39;s data.<br>    |<br>    | Supported: &quot;session&quot;, &quot;token&quot;<br>    |<br>    */</pre><pre>    &#39;guards&#39; =&gt; [<br>        &#39;web&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;session&#39;,<br>            &#39;provider&#39; =&gt; &#39;users&#39;,<br>        ],</pre><pre>        &#39;api&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;token&#39;,<br>            &#39;provider&#39; =&gt; &#39;users&#39;,<br>            &#39;hash&#39; =&gt; false,<br>        ],</pre><pre>        &#39;admin&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;session&#39;,<br>            &#39;provider&#39; =&gt; &#39;admins&#39;,<br>        ],</pre><pre>        &#39;admin-api&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;token&#39;,<br>            &#39;provider&#39; =&gt; &#39;admins&#39;,<br>            &#39;hash&#39; =&gt; false,<br>        ],</pre><pre>        &#39;staff&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;session&#39;,<br>            &#39;provider&#39; =&gt; &#39;staffs&#39;,<br>        ],</pre><pre>        &#39;staff-api&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;token&#39;,<br>            &#39;provider&#39; =&gt; &#39;staffs&#39;,<br>            &#39;hash&#39; =&gt; false,<br>        ],<br>    ],</pre><pre>    /*<br>    |--------------------------------------------------------------------------<br>    | User Providers<br>    |--------------------------------------------------------------------------<br>    |<br>    | All authentication drivers have a user provider. This defines how the<br>    | users are actually retrieved out of your database or other storage<br>    | mechanisms used by this application to persist your user&#39;s data.<br>    |<br>    | If you have multiple user tables or models you may configure multiple<br>    | sources which represent each model / table. These sources may then<br>    | be assigned to any extra authentication guards you have defined.<br>    |<br>    | Supported: &quot;database&quot;, &quot;eloquent&quot;<br>    |<br>    */</pre><pre>    &#39;providers&#39; =&gt; [<br>        &#39;users&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;eloquent&#39;,<br>            &#39;model&#39; =&gt; App\User::class,<br>        ],<br>        &#39;admins&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;eloquent&#39;,<br>            &#39;model&#39; =&gt; App\Admin::class,<br>        ],<br>        &#39;staffs&#39; =&gt; [<br>            &#39;driver&#39; =&gt; &#39;eloquent&#39;,<br>            &#39;model&#39; =&gt; App\Staff::class,<br>        ],<br></pre><pre>        // &#39;users&#39; =&gt; [<br>        //     &#39;driver&#39; =&gt; &#39;database&#39;,<br>        //     &#39;table&#39; =&gt; &#39;users&#39;,<br>        // ],<br>    ],</pre><pre>    /*<br>    |--------------------------------------------------------------------------<br>    | Resetting Passwords<br>    |--------------------------------------------------------------------------<br>    |<br>    | You may specify multiple password reset configurations if you have more<br>    | than one user table or model in the application and you want to have<br>    | separate password reset settings based on the specific user types.<br>    |<br>    | The expire time is the number of minutes that the reset token should be<br>    | considered valid. This security feature keeps tokens short-lived so<br>    | they have less time to be guessed. You may change this as needed.<br>    |<br>    */</pre><pre>    &#39;passwords&#39; =&gt; [<br>        &#39;users&#39; =&gt; [<br>            &#39;provider&#39; =&gt; &#39;users&#39;,<br>            &#39;table&#39; =&gt; &#39;password_resets&#39;,<br>            &#39;expire&#39; =&gt; 60,<br>            &#39;throttle&#39; =&gt; 60,<br>        ],</pre><pre>        &#39;admins&#39; =&gt; [<br>            &#39;provider&#39; =&gt; &#39;admins&#39;,<br>            &#39;table&#39; =&gt; &#39;password_resets&#39;,<br>            &#39;expire&#39; =&gt; 60,<br>            &#39;throttle&#39; =&gt; 60,<br>        ],</pre><pre>        &#39;staffs&#39; =&gt; [<br>            &#39;provider&#39; =&gt; &#39;staffs&#39;,<br>            &#39;table&#39; =&gt; &#39;password_resets&#39;,<br>            &#39;expire&#39; =&gt; 60,<br>            &#39;throttle&#39; =&gt; 60,<br>        ],<br>    ],</pre><pre>    /*<br>    |--------------------------------------------------------------------------<br>    | Password Confirmation Timeout<br>    |--------------------------------------------------------------------------<br>    |<br>    | Here you may define the amount of seconds before a password confirmation<br>    | times out and the user is prompted to re-enter their password via the<br>    | confirmation screen. By default, the timeout lasts for three hours.<br>    |<br>    */</pre><pre>    &#39;password_timeout&#39; =&gt; 10800,</pre><pre>];</pre><h4>STEP 9. SET UP ROUTESERVICE PROVIDER</h4><p>Inside the route service provider under the boot method, we will see all the registered routes from <strong>Web</strong> to <strong>APIS, </strong>but we need to add two custom configurations to the existing routes which will be the admin and the staff route. by default, there are two routes that are already defined <strong>(API and Web )</strong> for the default users. So we will add admin and staff routes below the user routes.</p><p>Copy the below code and paste it inside the route service provide, located under <strong>app/Providers/RouteServiceProvider</strong></p><pre>&lt;?php</pre><pre>namespace App\Providers;</pre><pre>use Illuminate\Cache\RateLimiting\Limit;<br>use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;<br>use Illuminate\Http\Request;<br>use Illuminate\Support\Facades\RateLimiter;<br>use Illuminate\Support\Facades\Route;</pre><pre>class RouteServiceProvider extends ServiceProvider<br>{<br>    /**<br>     * The path to the &quot;home&quot; route for your application.<br>     *<br>     * This is used by Laravel authentication to redirect users after login.<br>     *<br>     * @var string<br>     */<br>    public const HOME = &#39;/dashboard&#39;;</pre><pre>    /**<br>     * The controller namespace for the application.<br>     *<br>     * When present, controller route declarations will automatically be prefixed with this namespace.<br>     *<br>     * @var string|null<br>     */<br>    // protected $namespace = &#39;App\\Http\\Controllers&#39;;</pre><pre>    /**<br>     * Define your route model bindings, pattern filters, etc.<br>     *<br>     * @return void<br>     */<br>    public function boot()<br>    {<br>        $this-&gt;configureRateLimiting();</pre><pre>        $this-&gt;routes(function () {</pre><pre>            // En-User<br>            Route::prefix(&#39;api&#39;)<br>                -&gt;middleware(&#39;api&#39;)<br>                -&gt;namespace($this-&gt;namespace)<br>                -&gt;group(base_path(&#39;routes/api.php&#39;));</pre><pre>            Route::middleware(&#39;web&#39;)-&gt;name(&#39;users.&#39;)<br>                -&gt;namespace($this-&gt;namespace)<br>                -&gt;group(base_path(&#39;routes/web.php&#39;));<br></pre><pre>                // Admin User<br>            Route::prefix(&#39;admin&#39;)-&gt;name(&#39;admin.&#39;)<br>                -&gt;middleware(&#39;web&#39;)<br>                -&gt;namespace($this-&gt;namespace)<br>                -&gt;group(base_path(&#39;routes/admin.php&#39;));</pre><pre>                // Staff User<br>            Route::prefix(&#39;staff&#39;)-&gt;name(&#39;staff.&#39;)<br>                -&gt;middleware(&#39;web&#39;)<br>                -&gt;namespace($this-&gt;namespace)<br>                -&gt;group(base_path(&#39;routes/staff.php&#39;));<br>        });<br>    }</pre><pre>    /**<br>     * Configure the rate limiters for the application.<br>     *<br>     * @return void<br>     */<br>    protected function configureRateLimiting()<br>    {<br>        RateLimiter::for(&#39;api&#39;, function (Request $request) {<br>            return Limit::perMinute(60)-&gt;by(optional($request-&gt;user())-&gt;id ?: $request-&gt;ip());<br>        });<br>    }<br>}</pre><h4>STEP 10. CREATE CUSTOM ROUTE FILES</h4><p>In this part, we will need to create 2 new files under the <strong>routes folder. </strong>structure as follows below:</p><ul><li>admin.php</li><li>staff.php</li></ul><p><strong>Under Routes/Admin.php </strong>— copy and paste the below code inside.</p><pre>&lt;?php</pre><pre>use Illuminate\Support\Facades\Route;<br>use App\Http\Controllers\Auth\Admin\AdminController;<br></pre><pre>// IF THE ADMIN USER DON NOT LOGIN CAN ABLE TO SEE THIS ROUTES<br>Route::middleware([&#39;guest:admin&#39;])-&gt;group(function () {<br>  Route::post(&#39;register&#39;,    [AdminController::class, &#39;AdminRegisteration&#39;])-&gt;name(&#39;register&#39;);<br>  Route::get(&#39;/&#39;,            [AdminController::class, &#39;AdminLoginForm&#39;])-&gt;name(&#39;login.form&#39;);<br>  Route::post(&#39;postlogin&#39;,   [AdminController::class, &#39;AdminLogin&#39;])-&gt;name(&#39;login&#39;);<br>});<br></pre><pre>// IF THE ADMIN USER  LOGGEDIN CAN ABLE TO SEE THIS ROUTES<br>Route::middleware([&#39;auth:admin&#39;])-&gt;group(function () {</pre><pre>  Route::get(&#39;dashboard&#39;, [AdminController::class, &#39;Dashboard&#39;])-&gt;name(&#39;dashboard&#39;);<br> Route::post(&#39;logout&#39;,      [AdminController::class, &#39;AdminLogout&#39;])-&gt;name(&#39;logout&#39;);<br>});</pre><p><strong>Under Routes/Staff.php — </strong>copy and paste the below code inside.</p><pre>&lt;?php</pre><pre>use Illuminate\Support\Facades\Route;<br>use App\Http\Controllers\StaffController;<br></pre><pre>Route::middleware([&#39;guest:staff&#39;])-&gt;group(function () {<br>  Route::get(&#39;/auth&#39;,            [StaffController::class, &#39;StaffLoginForm&#39;])-&gt;name(&#39;login.form&#39;);<br>  Route::post(&#39;postlogin&#39;,   [StaffController::class, &#39;StaffLogin&#39;])-&gt;name(&#39;login&#39;);<br>});<br></pre><pre>Route::middleware([&#39;auth:staff&#39;])-&gt;group(function () {<br>  Route::get(&#39;dashboard&#39;,   [StaffController::class, &#39;Dashboard&#39;])-&gt;name(&#39;dashboard&#39;);<br>  Route::post(&#39;logout&#39;,      [StaffController::class, &#39;StaffLogout&#39;])-&gt;name(&#39;logout&#39;);</pre><pre>});</pre><h4>STEP 11. SET UP AUTHENTICATE MIDDLEWARE</h4><p>In this part, we need to configure our authenticate middleware under <strong>Http/Middleware/Authenticate.php</strong></p><p>so that when the user or admin or staff login fails the guard will redirect them back to their login page, so let’s copy and paste the below code inside.</p><p><strong>Http/Middleware/Authenticate.php</strong></p><pre>&lt;?php</pre><pre>namespace App\Http\Middleware;</pre><pre>use Illuminate\Auth\Middleware\Authenticate as Middleware;</pre><pre>class Authenticate extends Middleware<br>{<br>    /**<br>     * Get the path the user should be redirected to when they are not authenticated.<br>     *<br>     * @param  \Illuminate\Http\Request  $request<br>     * @return string|null<br>     */<br>    protected function redirectTo($request)<br>    {<br>        if (! $request-&gt;expectsJson()) {</pre><pre>            if ($request-&gt;routeIs(&#39;admin.*&#39;)) {<br>                return route(&#39;admin.login.form&#39;);<br>            }elseif ($request-&gt;routeIs(&#39;staff.*&#39;)) {<br>                return route(&#39;staff.login.form&#39;);<br>            }<br>            return route(&#39;users.login.form&#39;);<br>        }<br>    }<br>}</pre><h4>STEP 12. SET UP REDIRECTIFAUTHENTICATED MIDDLEWARE</h4><p>In this part, we need to configure our RedirectIfAuthenticated middleware under <strong>Http/Middleware/RedirectIfAuthenticated.php</strong></p><p>So that when the user or admin or staff logged in successfully the guard will redirect them to their dashboard, so let’s copy and paste the below code inside.</p><p><strong>Http/Middleware/RedirectIfAuthenticated.php</strong></p><pre>&lt;?php</pre><pre>namespace App\Http\Middleware;</pre><pre>use App\Providers\RouteServiceProvider;<br>use Closure;<br>use Illuminate\Http\Request;<br>use Illuminate\Support\Facades\Auth;</pre><pre>class RedirectIfAuthenticated<br>{<br>    /**<br>     * Handle an incoming request.<br>     *<br>     * @param  \Illuminate\Http\Request  $request<br>     * @param  \Closure  $next<br>     * @param  string|null  ...$guards<br>     * @return mixed<br>     */<br>    public function handle(Request $request, Closure $next, ...$guards)<br>    {<br>        $guards = empty($guards) ? [null] : $guards;</pre><pre>        foreach ($guards as $guard) {<br>            if (Auth::guard($guard)-&gt;check()) {</pre><pre>                if ($guard === &#39;admin&#39;) {<br>                   return redirect(route(&#39;admin.dashboard&#39;));<br>                }elseif ($guard === &#39;staff&#39;) {<br>                    return redirect(route(&#39;staff.dashboard&#39;));<br>                }<br>                return redirect(RouteServiceProvider::HOME);<br>            }<br>        }</pre><pre>        return $next($request);<br>    }<br>}</pre><h4>STEP 13. SET UP CONTROLLERS</h4><p>In this part, we will work with the controllers to implement our logic on how both the user and admin will able to login to their dashboard from different login forms.</p><p>Let’s start with the <strong>AdminController</strong></p><p><strong>app/Http/Controllers/AdminController.php</strong></p><pre>&lt;?php</pre><pre>namespace App\Http\Controllers;</pre><pre>use Illuminate\Http\Request;<br>use Vonage\Message\Shortcode\Alert;<br>use App\Http\Controllers\Controller;<br>use Illuminate\Support\Facades\Auth;<br>use Illuminate\Validation\ValidationException;</pre><pre>class AdminController extends Controller<br>{<br>    public function AdminLoginForm()<br>    {<br>        return view(&#39;auth.admin.login&#39;);<br>    }</pre><pre>    public function AdminLogin(Request $request)<br>    {<br>        $credential = $request-&gt;only([&#39;email&#39;, &#39;password&#39;]);</pre><pre>        if (Auth::guard(&#39;admin&#39;)-&gt;attempt($credential, $request-&gt;filled(&#39;remember&#39;))) {</pre><pre>            return redirect()-&gt;route(&#39;admin.dashboard&#39;);<br>        } else {<br>            throw ValidationException::withMessages([<br>                &#39;email&#39; =&gt; &#39;invalid email or password&#39;<br>            ]);<br>        }<br>    }</pre><pre>    public function AdminLogout()<br>    {<br>        Auth::guard(&#39;admin&#39;)-&gt;logout();</pre><pre>        return redirect(route(&#39;admin.login.form&#39;));<br>    }<br>}</pre><p><strong>app/Http/Controllers/StaffController.php</strong></p><pre>&lt;?php</pre><pre>namespace App\Http\Controllers;</pre><pre>use Illuminate\Http\Request;<br>use Vonage\Message\Shortcode\Alert;<br>use App\Http\Controllers\Controller;<br>use Illuminate\Support\Facades\Auth;<br>use Illuminate\Validation\ValidationException;</pre><pre>class AdminController extends Controller<br>{<br>    public function StaffLoginForm()<br>    {<br>        return view(&#39;auth.staff.login&#39;);<br>    }</pre><pre>    public function StaffLogin(Request $request)<br>    {<br>        $credential = $request-&gt;only([&#39;email&#39;, &#39;password&#39;]);</pre><pre>        if (Auth::guard(&#39;staff&#39;)-&gt;attempt($credential, $request-&gt;filled(&#39;remember&#39;))) {</pre><pre>            return redirect()-&gt;route(&#39;staff.dashboard&#39;);<br>        } else {<br>            throw ValidationException::withMessages([<br>                &#39;email&#39; =&gt; &#39;invalid email or password&#39;<br>            ]);<br>        }<br>    }</pre><pre>    public function StaffLogout()<br>    {<br>        Auth::guard(&#39;staff&#39;)-&gt;logout();</pre><pre>        return redirect(route(&#39;staff.login.form&#39;));<br>    }<br>}</pre><h4>CONCLUSION</h4><p>There is how to make a multi auth guard using a built-in laravel guard with any package hopefully when you read this article will help you to understand how to set up your custom guards in laravel with multi-auth-users in one application.</p><blockquote><em>Thank you, if this article is helpful to you please do not forget to share and comment below or if you get confuse kindly leave a comment we will get back to you with a help.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1db629ab1dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel Online Library Management System]]></title>
            <link>https://jambasangsang.medium.com/laravel-online-library-management-system-6468e4c52702?source=rss-a22435d581a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6468e4c52702</guid>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php-developers]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <dc:creator><![CDATA[Alagie Singhateh]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 22:41:04 GMT</pubDate>
            <atom:updated>2021-06-22T22:53:53.623Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*L7mMkYqGeNImBaulnWQT0A.png" /></figure><p>Hello Everyone, today’s article is based on the Laravel Online Library Management system.</p><p>Before going any further let’s discuss the definition of a library management system, and why it’s important?</p><p>Click this link <a href="https://jambasangsang.com/">https://jambasangsang.com</a> to the resources</p><h3>Definition</h3><p>“A <strong>Library management system</strong> is a <strong>software</strong> that uses to maintain the record of the <strong>library</strong>. … <strong>Library Management Systems</strong> is <strong>software</strong> that helps to maintain a database that is useful to enter new books &amp; record books borrowed by the members, with the respective submission dates”</p><p>Let’s talk about the functionalities of the system, the librarian or administrator will have the access to the complete system. the system is user-friendly, it’s easy to use with or without having any knowledge about computer programming. what you just need to know is to understand simple English.</p><p>So now let me show you how the system going to works step by step.</p><p><strong>Firstly</strong>. we need to Register a Librarian or Admin to manage the system. now I will register the librarian.</p><p><strong>Step 1</strong>. You need to navigate to the registration page and register a new librarian or admin. add all the necessary details that are required for registration and proceed to click the Register button.</p><p>After completing the registering of the user to manage the system we need to navigate to the login page and enter our login credentials to have access to login inside the system.</p><p>After login inside the system. The librarian or admin. can able to perform. CRUD operations. such as adding a new book. viewing a new book. updating a new book, even deleting an existing book from the system.</p><p>The librarian can also able to view all the books that are available in the system because he/she has the privilege to do so.</p><p>Inside the System, the librarian can also add the book categories such as. <strong>Fiction</strong> or <strong>NonFiction</strong>. to categorized the books so that the students can able to find their interesting books with a single click.</p><p>After that, the librarian can also able to add different <strong>branches</strong> if the school or institution has many <strong>branches</strong>. and can also able to add student categories if there are any. such as <strong>Under Graduate students</strong> or <strong>Post Graduate students</strong>. and can give max the amount for each category to able to borrow books in the library.</p><p>On the home page of the system. the librarian or admin can able to find books by entering the <strong>book ID</strong> to find the book detail inside the system and see if the book is available or not. and the librarian can also search the Issue books by entering the issue book ID and the result will show the book detail and the student that issued the book from the library. and the librarian can also able to search students by entering the student ID to find the specific student from the system. if the student is approved or not been approved yet. based on the result the librarian can print the result as a PDF or can able to send an email to the student if the books that they took it’s not been returned yet.</p><p>Click this link <a href="https://jambasangsang.com/">https://jambasangsang.com</a> to the resources</p><h3>Conclusion</h3><p>In this article, we discuss a little bit about the library management system which is very important in our daily activities. if you found this article helpful kindly comment or if there is any misunderstanding you can comment on the comment section give your thought on what should be increased.</p><blockquote><em>Thank you!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6468e4c52702" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>